LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Calling routines from different sheets

I have a muti-sheet workbook with many macros on each sheet (i.e. not in
modules) and in userforms.
I need to be able to run a macro on one sheet then makes another sheet
active and then calls a macro stored in that sheet.

So Sheet1 has a number of buttons on it. One of them says "sort" and the
user presses this and the code behind the button runs. On Sheet2 there
are more command buttons and one of these says "check data". The plan is
that this button does some work then makes sheet1 active and then runs the
code under the commandbutton called "Sort". How do I make that happen.

Finally can you explain what is the difference/advantage of using Modules
to hold the code over having it in the sheets behind command buttons.

many thanks

Peter


--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
 
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
calling external routines Mike Excel Programming 2 December 11th 06 09:57 AM
Using routines to change a number of sheets Zone Excel Programming 7 July 27th 06 05:31 PM
Calling Programs in other sheets wilro85 Excel Programming 0 September 2nd 05 07:42 PM
Calling sub routines Andrew[_49_] Excel Programming 2 June 30th 05 05:30 PM
Help! Calling hidden sheets? Arvi Laanemets Excel Programming 0 February 5th 04 07:16 PM


All times are GMT +1. The time now is 08:26 AM.

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

About Us

"It's about Microsoft Excel"