Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Assign Button to Macro

Status
Not open for further replies.

Nitha120

Technical User
Feb 22, 2005
33
US
Hi,
How do I assign 2 or more sub routine (Macro) to the button.
I want to have a button for call Summarize to run 2 subroutine rather then have separate Button for each Macro.

Any suggestion is greatly appreciated!
 
hi,
Code:
Sub Button_Click()
  Macro1
  Macro2
End Sub


Skip,
[sub]
[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue][/sub]

 
Oh and 1 more thing, How do I update my Summarize sheet automatically once the original has been change.

another word, Say sheet1 are 50 then I copy to my summarize sheet. When the number 50 change to 100 in
sheet1 I want the number in my summarize sheet update to 100 as well.

any suggestion?
 

I assume that your macro puts those values on sheet1.

If so,have your macro ALSO put the value in your other sheet.

Skip,
[sub]
[glasses] [red]Be advised:[/red] When you ignite a firecracker in a bowl of vanilla, chocolate & strawberry ice cream, you get...
Neopolitan Blownapart! [tongue][/sub]

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top