Word 2003 VBA: '<Range>.Style' does not return the style of the final paragraph of a table cell
Posted on 2007-10-11
I am using Word 2003 VBA.
I think I have found a little bug in Word. When I have a Range type variable, e.g.,
Dim RangePara as Range
and it is set to the final paragraph of a table cell, then using 'RangePara.Style' does not return the style. Instead it returns 'Nothing'.
(Btw, when I place the cursor on that final paragraph, when I look at the 'Style' field on the Formatting toolbar of the main document window, I do see that the correct style name appears.)
Does anybody know any command I can use to return me the style of the final paragraph of a table cell?