Thread: [Solved] Where does my code go?
View Single Post
 
Old 03-13-2012, 03:11 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,385
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Hi rbaldwin,

Typically, code that isn't specifically related to 'Document' events goes into one or more separate code modules (you might use multiple code modules for grouping related projects and keeping them separate from other projects). If you want to see what those are, open the 'ThisDocument' module, select 'Document' from the left-hand dropdown above the code pane, then take a look at the contents of the right-hand dropdown.

Also, if you create a userform, the code for that should generally go into the userform's code module.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote