VBA detecting style used
Is it possible to write VBA code to detect the style currently used? I am creating a macro to insert and format a table and image caption, however the style used for these captions depend on where it is in the document e.g. the caption sits further in if there is a heading above, for paragraph text I have created an 'indented normal' style, so I am wanting the code to see the 'indented normal' and apply an 'indented caption' style.
|