Macro Programing for This Document Only

  • Thread starter Thread starter SITCFanTN
  • Start date Start date
S

SITCFanTN

I've created macros for a document titled, "Balancing_Today" and I want those
macros only to apply to that workbook only, no others. I have the setting
for the macro buttons set to Macro In This Workbook however the code for the
macro appears in the other workbooks as well. How can I have those macros
appear in just the one document.

Thanks so much for your help.
 
On the second line of the module (just below Option Explicit) add
Option Private Module
-or-
Prefix each Sub (macro) with Private ...

Private Sub GoodStuff()
'code
End Sub
--
Jim Cone
Portland, Oregon USA




"SITCFanTN"
wrote in message
I've created macros for a document titled, "Balancing_Today" and I want those
macros only to apply to that workbook only, no others. I have the setting
for the macro buttons set to Macro In This Workbook however the code for the
macro appears in the other workbooks as well. How can I have those macros
appear in just the one document.
Thanks so much for your help.
 

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

Back
Top