If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > PC based Database Applications > Microsoft Excel > Button to run macro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 09-27-06, 22:02
Jay59 Jay59 is offline
Registered User
 
Join Date: Sep 2006
Posts: 162
Button to run macro

How do I go about creating button on a sheet that will run a macro.
Reply With Quote
  #2 (permalink)  
Old 09-28-06, 07:51
shades shades is offline
Registered User
 
Join Date: Oct 2003
Posts: 1,091
There are four ways to do this:

1. Are you just wanting access to the code by clicking a button? If so, draw an object on the spreadsheet, right-click and choose "Assign Macro".

2. Or do you want a button on the toolbar? Right-click the toolbar, choose "Customize". In dialog box, choose middle tab "Commands", on the left side scroll down to "Macros", select and then on right side choose "Custom Menu Item", click-drag it up to the toolbar, and relase when you see the dark vertical line. Then right-click the button, and choose "Assign macro". Right-click again and choose "Name" and put your custom name there.

3. Or Forms toolbar buttons?

4. Control Toolbox buttons?

Each has advantages.
__________________
old, slow, and confused
but at least I'm inconsistent!

Rich
(retired Excel 2003 user, 3/28/2008)

How to ask a question on forums
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On