Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I have made 15 different macroes, which is part of a report macro. I want the Userform OK button, to start the macro and then run through all the macroes. however my problem now is that the macro stops after the first End Sub. Is there a way to tell the macro to start directly on the next "Sub macro2 ()" . Thanks -- Ctech ------------------------------------------------------------------------ Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745 View this thread: http://www.excelforum.com/showthread...hreadid=474743 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Set OK button to Use a Macro(StartAllMacros) to call all other Macros
(Macro1, Macro2...) sub StartAllMacros() macro1 macro2 macro3 .... end sub "Ctech" wrote: I have made 15 different macroes, which is part of a report macro. I want the Userform OK button, to start the macro and then run through all the macroes. however my problem now is that the macro stops after the first End Sub. Is there a way to tell the macro to start directly on the next "Sub macro2 ()" . Thanks -- Ctech ------------------------------------------------------------------------ Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745 View this thread: http://www.excelforum.com/showthread...hreadid=474743 |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Have the ok button run all your macros:
sub commandbutton1_click() call macro1 call macro2 call macro3 end sub Ctech wrote: I have made 15 different macroes, which is part of a report macro. I want the Userform OK button, to start the macro and then run through all the macroes. however my problem now is that the macro stops after the first End Sub. Is there a way to tell the macro to start directly on the next "Sub macro2 ()" . Thanks -- Ctech ------------------------------------------------------------------------ Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745 View this thread: http://www.excelforum.com/showthread...hreadid=474743 -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
my macros are sub print xx()
end sub will call "sub print xx" run the sub without more code "Dave Peterson" wrote: Have the ok button run all your macros: sub commandbutton1_click() call macro1 call macro2 call macro3 end sub Ctech wrote: I have made 15 different macroes, which is part of a report macro. I want the Userform OK button, to start the macro and then run through all the macroes. however my problem now is that the macro stops after the first End Sub. Is there a way to tell the macro to start directly on the next "Sub macro2 ()" . Thanks -- Ctech ------------------------------------------------------------------------ Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745 View this thread: http://www.excelforum.com/showthread...hreadid=474743 -- Dave Peterson |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Private Sub Commandbutton1_click()
macro1 macro2 macro3 .. . . macro14 macro15 end Sub just call the macros sequentially. -- Regards, Tom Ogilvy "Ctech" wrote in message ... I have made 15 different macroes, which is part of a report macro. I want the Userform OK button, to start the macro and then run through all the macroes. however my problem now is that the macro stops after the first End Sub. Is there a way to tell the macro to start directly on the next "Sub macro2 ()" . Thanks -- Ctech ------------------------------------------------------------------------ Ctech's Profile: http://www.excelforum.com/member.php...o&userid=27745 View this thread: http://www.excelforum.com/showthread...hreadid=474743 |
#6
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() to run several macros inside another macro use the "call" command EXAMPLE: the names of your recorded macros are "recorded_macro1" & "recorded_macro2" sub main() call recorded_macro1 call recorded_macro2 end sub i hope this helps. i dont use userforms so i am not sure if this will work. good luck. -- tad_wegner ------------------------------------------------------------------------ tad_wegner's Profile: http://www.excelforum.com/member.php...o&userid=27770 View this thread: http://www.excelforum.com/showthread...hreadid=474743 |
#7
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
What will this do when macros are sub end sub
being new this is confusing. have no macros named only sub()end sub "tad_wegner" wrote: to run several macros inside another macro use the "call" command EXAMPLE: the names of your recorded macros are "recorded_macro1" & "recorded_macro2" sub main() call recorded_macro1 call recorded_macro2 end sub i hope this helps. i dont use userforms so i am not sure if this will work. good luck. -- tad_wegner ------------------------------------------------------------------------ tad_wegner's Profile: http://www.excelforum.com/member.php...o&userid=27770 View this thread: http://www.excelforum.com/showthread...hreadid=474743 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
weird saving of a document with macros resulting with macros being transfered to the copy | Excel Programming | |||
convert lotus 123w macros to excel macros | Excel Programming | |||
convert lotus 123w macros to excel macros | Excel Programming | |||
Open workbook-macros enabled, opening another with macros | Excel Programming | |||
Suppress the Disable Macros / Enable Macros Dialog | Excel Programming |