Connecting Tech Pros Worldwide Forums | Help | Site Map

How run a macro of word while it is closing

seshu's Avatar
Familiar Sight
 
Join Date: Nov 2006
Location: Hyderabad,India
Posts: 156
#1: May 14 '07
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

danp129's Avatar
Expert
 
Join Date: Jul 2006
Posts: 250
#2: May 14 '07

re: How run a macro of word while it is closing


Expand|Select|Wrap|Line Numbers
  1. Private Sub Document_Close()
  2.     MsgBox "You could call your sub here"
  3. End Sub
Reply


Similar Visual Basic 4 / 5 / 6 bytes