Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
jpx jpx is offline
external usenet poster
 
Posts: 1
Default Macro Buttons


Does anyone know how I can insert a button into a worksheet and then
have that button, once pressed, execute a macro that I have just
recorded. Thanks.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 32
Default Macro Buttons

This should work if you are using a VB command button.
Just put the name of a macro in the Click sub

Private Sub CommandButton1_Click()
Macro1
End Sub



"jpx" wrote in message
...

Does anyone know how I can insert a button into a worksheet and then
have that button, once pressed, execute a macro that I have just
recorded. Thanks.


------------------------------------------------
~~ Message posted from http://www.ExcelTip.com/
~~View and post usenet messages directly from http://www.ExcelForum.com/



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
Macro Buttons WVR Excel Discussion (Misc queries) 4 June 10th 09 10:37 PM
Macro buttons opening saved macro Wasabijim Excel Discussion (Misc queries) 0 April 29th 09 08:39 PM
Macro Buttons Lois Excel Worksheet Functions 4 April 1st 09 03:33 PM
look for buttons in a macro jkt Excel Discussion (Misc queries) 1 June 16th 06 04:10 PM
macro buttons Sheetal Excel Programming 5 November 10th 03 03:08 PM


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