View Single Post
 
Old 03-08-2023, 03:18 PM
NicoleJones NicoleJones is offline Windows 10 Office 2016
Novice
 
Join Date: Jan 2020
Posts: 11
NicoleJones is on a distinguished road
Default 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.
Reply With Quote