Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Run worksheet level macro in a macro

I am trying to launch a worksheet level (on sheet
activated) event from another macro. I do not want to
actually activate the sheet to get it to run though. Is
there any way that I can do this? Let me know, and thank
you in advance for the help!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Run worksheet level macro in a macro

If you change the declaration of the Activate procedure from
Private to Public, you can call it from any macro. E.g.,

Sheet1.Worksheet_Activate


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Wandering Mage" wrote in
message ...
I am trying to launch a worksheet level (on sheet
activated) event from another macro. I do not want to
actually activate the sheet to get it to run though. Is
there any way that I can do this? Let me know, and thank
you in advance for the help!



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 85
Default Run worksheet level macro in a macro

Chip,
That's the VBA name for the sheet as opposed to the worksheet name as
displayed on the worksheet tab, right?
AlexJ

"Chip Pearson" wrote in message
...
If you change the declaration of the Activate procedure from
Private to Public, you can call it from any macro. E.g.,

Sheet1.Worksheet_Activate


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Wandering Mage" wrote in
message ...
I am trying to launch a worksheet level (on sheet
activated) event from another macro. I do not want to
actually activate the sheet to get it to run though. Is
there any way that I can do this? Let me know, and thank
you in advance for the help!





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not able to KEEP Macro Security Level At Minimum Carl Excel Discussion (Misc queries) 2 March 5th 06 08:17 AM
Detecting Macro Security Level Ed Ferrero[_5_] Excel Programming 0 June 15th 04 01:22 PM
Detecting Macro Security Level arkimediz Excel Programming 0 June 15th 04 11:47 AM
Using VBA to change macro security level Tracey[_4_] Excel Programming 4 January 23rd 04 07:20 PM
Macro to change security level Michael Miazga[_2_] Excel Programming 2 July 21st 03 08:39 PM


All times are GMT +1. The time now is 02:01 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"