Could you possibly attach (in a zip folder) the .dotm or .docm file with your customization and macro? Click (in this forum) on the Go Advanced button under the reply window.
Why not simply use the Insert Table of Contents command from Word commands rather than a macro? OK, I see, you just want level 1 headings.
I get an error message in the Custom UI when checking. May just be my typing.
|