By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,758 Members | 1,250 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,758 IT Pros & Developers. It's quick & easy.

How run a macro of word while it is closing

seshu
100+
P: 156
Hi Everybody
I wrote to macros
Show the genders (which will highlight all the He and She trems in document)
dont Show the genders (which will dehighlight all the He and She trems in document)
and presently iam going tools>Macros>run Macro to run any macro and just i know to run the macro i am doing that but now a days even my friends are also useing the same macro but they forgeting to run this dont Show the genders while closing the file so now what i want is

Can i call this macro(dont Show the genders) while the user is closing the document
and how Please Help me out I think iam clear to you all

Regards
Seshu
May 14 '07 #1
Share this Question
Share on Google+
1 Reply


danp129
Expert 100+
P: 321
Expand|Select|Wrap|Line Numbers
  1. Private Sub Document_Close()
  2.     MsgBox "You could call your sub here"
  3. End Sub
May 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.