In Excel VBA, I want to retrieve the text of a cell together with the format of each word. For example, Cell A1 has value "sample text". The Range("A1").Value property only returns the plain text (i.e. "sample text"). What I want is an object that gives me something like "< i > sample < /i > < b > text < /b >". What is that object in Excel DOM?
相关问题
- Excel sunburst chart: Some labels missing
- Error handling only works once
- Error handling only works once
- Excel formula in VBA code
- Replace image attributes for lazyload plugin on im
相关文章
- Get column data by Column name and sheet name
- DOM penalty of using html attributes
- programmatically excel cells to be auto fit width
- Unregister a XLL in Excel (VBA)
- Unregister a XLL in Excel (VBA)
- How to create an SVG Matrix without an SVG element
- How to prevent excel from truncating numbers in a
- Append new attribute with setAttribute()?
You can do so by examining
Font
ofCharacters
, one by one, and opening/closing formatting tags in your output accordingly: