Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 32
Default How to assing micro to a command button

How I assign a micro to a command button?
And How i assign 5 micros to a one command button?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,942
Default How to assing micro to a command button

hi,
right click the button. from the popup menu, select "view code". the default
should be the click event. If you have already written the macro, then you
can use the call command to call it from the button code. if not, then you
can put your macro directly into the button code. if running 5 macros, i
would write them seperate and use the call command
private Sub Commandbutton1_Click()

Call macro1
Call macro2
Call macro3
Call macro4
Call macro5

End Sub

used this way, each macro will run in turn, one after the other so be sure
to get your sequences in order.

Regards
FSt1

"Qazi Ahmad" wrote:

How I assign a micro to a command button?
And How i assign 5 micros to a one command button?

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
VBA Command Button IntricateFool Excel Discussion (Misc queries) 5 December 8th 06 04:39 AM
Command Button Steved Excel Worksheet Functions 2 February 19th 06 11:01 PM
Assing a macro to a contro. Richard Excel Discussion (Misc queries) 1 January 22nd 06 10:22 PM
command button Hellboy Excel Discussion (Misc queries) 0 November 3rd 05 02:51 PM
Command Button Mark New Users to Excel 2 March 23rd 05 10:33 AM


All times are GMT +1. The time now is 09:49 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"