Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default code to run another macro?


i have a complexed macro for sheet activate programmed but yet want the
same macro to fire within another event it would be highly impractical
to simply cut and paste the code to another point within vba so is
there a code to trigger this event even though the sheet is already
activated?

i.e run.macro_worksheet active()

thanks in advance any help much apprechiated


--
short_n_curly
------------------------------------------------------------------------
short_n_curly's Profile: http://www.excelforum.com/member.php...o&userid=21576
View this thread: http://www.excelforum.com/showthread...hreadid=386611

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,119
Default code to run another macro?

Change the sub declaration from private to public and you can call it like
any other procedure. Just make sure you reference the call with the sheet.
--
HTH...

Jim Thomlinson


"short_n_curly" wrote:


i have a complexed macro for sheet activate programmed but yet want the
same macro to fire within another event it would be highly impractical
to simply cut and paste the code to another point within vba so is
there a code to trigger this event even though the sheet is already
activated?

i.e run.macro_worksheet active()

thanks in advance any help much apprechiated


--
short_n_curly
------------------------------------------------------------------------
short_n_curly's Profile: http://www.excelforum.com/member.php...o&userid=21576
View this thread: http://www.excelforum.com/showthread...hreadid=386611


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
Deleting code from a macro (by a macro) Brettjg Excel Discussion (Misc queries) 2 May 8th 07 10:14 PM
Macro copying macro code TNSKHelp Excel Programming 1 June 17th 05 04:59 PM
Macro to change Macro code? Kaisies Excel Programming 2 March 23rd 05 03:34 AM
Excel XP VBA code to search all macro code in Excel module for specific search string criteria Ed[_18_] Excel Programming 4 May 20th 04 02:08 PM
Excel XP VBA code to search all macro code in Excel module for specific search string criteria Frank Kabel Excel Programming 0 May 19th 04 08:11 PM


All times are GMT +1. The time now is 03:27 AM.

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"