Can someone please explain ThisDocument and Macros relationship

M

Mike

Hi

I have written some macros for a template that need to pass parameters to
statements in the Document_Close Sub in ThisDocument part of the project, I
want to run different statements conditionally when closing a document/Word.

The macros are created under NewMacros.

However I can neither call the Document_Close from my macro nor can the
Document_Close read my variables (public) if I use Application.Quit.

Can anyone suggest what I am doing wrong please?

Thanks
Mike
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top