I have an excel table with inline formatting – only one word in the cell is bold, for example. When I read the cell value I get a plain text BSTR. How can I get the formatting?
I’m doing this in AX but I guess it’s the same as in C# or anything else that uses the Excel Interop library.
Thanks
You want the
Charactersproperty of the cell. Referenced asexpression.Characters(Start, Length)eg
Range("A1").Characters(3,1).Font.Boldwill tell if the third character is Bold