All,
I working on a macro enabled MS word template for creating specification documents. I have now the following issue. I have created code that inserts a table (or whatever) into the document in the way I want the table to look. However the code currently does not care if my selection is for example within a heading style, a figure caption or where ever. I have seen the same when using the IEC document template (https://www.iec.ch/standards-development/writing-and-formatting) where this is not checked.
I like to have table, figures, etc. only inserted in a plain body style of the document. Is there any way or an example how to do this with VBA. Currently I'm using Word 2021 on a PC but it needs to work as well with 2019 on a MAC.
Thanks, Martin