Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can I run a macro from a command button in Excel?

I have created macros that I would like to run when a command button (placed
on the excel worksheet) is clicked. How can I do this?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Can I run a macro from a command button in Excel?

View / Toolbars / Forms - Use the Grey button - When drawn it will ask you
what macro you want to assign to it. If not then right click on it and
choose assign macro.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"jacchops" wrote in message
...
I have created macros that I would like to run when a command button

(placed
on the excel worksheet) is clicked. How can I do this?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Can I run a macro from a command button in Excel?

I thought I could only use those buttons on forms. I was wrong. Thank you so
much!! That couldn't have been any easier.

"Ken Wright" wrote:

View / Toolbars / Forms - Use the Grey button - When drawn it will ask you
what macro you want to assign to it. If not then right click on it and
choose assign macro.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"jacchops" wrote in message
...
I have created macros that I would like to run when a command button

(placed
on the excel worksheet) is clicked. How can I do this?




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 634
Default Can I run a macro from a command button in Excel?

:-) You're welcome.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03

----------------------------------------------------------------------------
It's easier to beg forgiveness than ask permission :-)
----------------------------------------------------------------------------

"jacchops" wrote in message
...
I thought I could only use those buttons on forms. I was wrong. Thank you

so
much!! That couldn't have been any easier.

"Ken Wright" wrote:

View / Toolbars / Forms - Use the Grey button - When drawn it will ask

you
what macro you want to assign to it. If not then right click on it and
choose assign macro.

--
Regards
Ken....................... Microsoft MVP - Excel
Sys Spec - Win XP Pro / XL 97/00/02/03


--------------------------------------------------------------------------

--
It's easier to beg forgiveness than ask permission :-)


--------------------------------------------------------------------------

--

"jacchops" wrote in message
...
I have created macros that I would like to run when a command button

(placed
on the excel worksheet) is clicked. How can I do this?






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
how to create a command button, then assign macro to it in excel kshaheen Excel Discussion (Misc queries) 3 June 24th 08 01:03 PM
Applying a macro to a command button, Excel 2002 Vicky Excel Discussion (Misc queries) 3 March 25th 08 07:05 PM
how do you assign a macro to a command button in Excel 2003 ns Excel Discussion (Misc queries) 5 October 25th 07 08:58 PM
How do I assign a macro to a command button in excel, office 2003 jp3 Excel Discussion (Misc queries) 4 May 10th 07 12:56 PM
How do i create a command button or macro to exit Microsoft Excel raj Excel Worksheet Functions 1 April 30th 05 02:17 PM


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