Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default one button for many (macro)

I've got a sheet in a workbook where I put 6 buttons; each one is assigned
to a macro and for my purpouse (and to control that code I write do the
right thins) I press them sequentially from 1 to 6 . Now, how can I define
another

TIA button that "press" buotton from 1 to 6 sequentially...?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 292
Default one button for many (macro)

Hi

You can call several macros from one, that is pretty essential in
programming:

Sub Macrocollection()
Call Macro1
Call Macro2
Call Macro3
End Sub

Sub Macro1()
MsgBox "1"
End Sub

Sub Macro2()
MsgBox "2"
End Sub

Sub Macro3()
MsgBox "3"
End Sub

HTH. Best wishes Harald

"uriel78" skrev i melding
...
I've got a sheet in a workbook where I put 6 buttons; each one is assigned
to a macro and for my purpouse (and to control that code I write do the
right thins) I press them sequentially from 1 to 6 . Now, how can I define
another

TIA button that "press" buotton from 1 to 6 sequentially...?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default one button for many (macro)

You don't, you create a new macro assigned to that button that runs the 6
macros sequentially.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"uriel78" wrote in message
...
I've got a sheet in a workbook where I put 6 buttons; each one is assigned
to a macro and for my purpouse (and to control that code I write do the
right thins) I press them sequentially from 1 to 6 . Now, how can I define
another

TIA button that "press" buotton from 1 to 6 sequentially...?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default one button for many (macro)


thank you all!


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
Use Macro To Change Which Macro Assigned To Command Button CVinje Excel Discussion (Misc queries) 0 May 25th 10 09:55 PM
use macro button to run macro in protected sheet earl Excel Discussion (Misc queries) 3 February 26th 06 10:21 PM
Can't select macro button after other button is pressed C. Campbell Excel Programming 1 November 30th 04 07:46 PM
Pause macro, add form button to sheet, continue macro when button clicked! Flystar[_15_] Excel Programming 1 May 26th 04 09:45 AM
How to end macro on inital active worksheet containing macro button that was clicked Silverhawk1 Excel Programming 2 May 14th 04 03:58 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"