PC Review


Reply
Thread Tools Rate Thread

Assign a macro to a button

 
 
totofab
Guest
Posts: n/a
 
      11th Dec 2007
How do I assign a macro to a button in the Quick Access Toolbar. And run the
macro by just cliking the button and not open the macro file first.
 
Reply With Quote
 
 
 
 
dksaluki
Guest
Posts: n/a
 
      12th Dec 2007
On Dec 11, 3:50 pm, totofab <toto...@discussions.microsoft.com> wrote:
> How do I assign a macro to a button in the Quick Access Toolbar. And run the
> macro by just cliking the button and not open the macro file first.


Right click anywhere up on the toolbar menu, go to CUSTOMIZE. In the
Customize dialogue box, click the COMMANDS tab. In the list on the
left, scroll down to MACROS. Then drag either of the buttons on the
right up to your toolbar. Now right click the new button and you'll
at the buttom: "Assign Macro...". Click that. you can also set other
things like the buttom image, what the button says, etc... enjoy!
 
Reply With Quote
 
totofab
Guest
Posts: n/a
 
      12th Dec 2007
But I'm using 2007.

"dksaluki" wrote:

> On Dec 11, 3:50 pm, totofab <toto...@discussions.microsoft.com> wrote:
> > How do I assign a macro to a button in the Quick Access Toolbar. And run the
> > macro by just cliking the button and not open the macro file first.

>
> Right click anywhere up on the toolbar menu, go to CUSTOMIZE. In the
> Customize dialogue box, click the COMMANDS tab. In the list on the
> left, scroll down to MACROS. Then drag either of the buttons on the
> right up to your toolbar. Now right click the new button and you'll
> at the buttom: "Assign Macro...". Click that. you can also set other
> things like the buttom image, what the button says, etc... enjoy!
>

 
Reply With Quote
 
ju
Guest
Posts: n/a
 
      13th Dec 2007
Hi,

officebutton, excel options, customize, dropdown field change from
popular commands, to macro.
If there is code in your workbook, you will see your macro module listed
below. click the add button in the middle to move it to the right side.
it is now in the quick access toolbar.

if your workbook does not contain any code modules, you will not be able
to see anything below the macro button.

to change the face image of the button, after you have done the above,
there is a modify button near the bottom right. click it and change to
the icons shown as desired.




totofab wrote:
> But I'm using 2007.
>
> "dksaluki" wrote:
>
>> On Dec 11, 3:50 pm, totofab <toto...@discussions.microsoft.com> wrote:
>>> How do I assign a macro to a button in the Quick Access Toolbar. And run the
>>> macro by just cliking the button and not open the macro file first.



>> Right click anywhere up on the toolbar menu, go to CUSTOMIZE. In the
>> Customize dialogue box, click the COMMANDS tab. In the list on the
>> left, scroll down to MACROS. Then drag either of the buttons on the
>> right up to your toolbar. Now right click the new button and you'll
>> at the buttom: "Assign Macro...". Click that. you can also set other
>> things like the buttom image, what the button says, etc... enjoy!
>>

 
Reply With Quote
 
totofab
Guest
Posts: n/a
 
      13th Dec 2007
Did that, however when I click on the macro button I get the message "Cannot
run the macro "(macroName)". The macro may not be available in this workbook
or all macros may be disbaled". But I open the macro file (and it has to be
the active file) - and click on the button it runs fine.

Never had a problem with macro buttons in Excel 2003. Don't know what I'm
missing. Any help is appreciated.

"ju" wrote:

> Hi,
>
> officebutton, excel options, customize, dropdown field change from
> popular commands, to macro.
> If there is code in your workbook, you will see your macro module listed
> below. click the add button in the middle to move it to the right side.
> it is now in the quick access toolbar.
>
> if your workbook does not contain any code modules, you will not be able
> to see anything below the macro button.
>
> to change the face image of the button, after you have done the above,
> there is a modify button near the bottom right. click it and change to
> the icons shown as desired.
>
>
>
>
> totofab wrote:
> > But I'm using 2007.
> >
> > "dksaluki" wrote:
> >
> >> On Dec 11, 3:50 pm, totofab <toto...@discussions.microsoft.com> wrote:
> >>> How do I assign a macro to a button in the Quick Access Toolbar. And run the
> >>> macro by just cliking the button and not open the macro file first.

>
>
> >> Right click anywhere up on the toolbar menu, go to CUSTOMIZE. In the
> >> Customize dialogue box, click the COMMANDS tab. In the list on the
> >> left, scroll down to MACROS. Then drag either of the buttons on the
> >> right up to your toolbar. Now right click the new button and you'll
> >> at the buttom: "Assign Macro...". Click that. you can also set other
> >> things like the buttom image, what the button says, etc... enjoy!
> >>

>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Assign macro to button Bob Phillips Microsoft Excel Programming 0 24th May 2004 04:27 PM
Assign macro to button Frank Kabel Microsoft Excel Programming 0 24th May 2004 04:03 PM
Assign Macro to button =?Utf-8?B?Q2hhcw==?= Microsoft Excel Programming 5 21st Mar 2004 08:16 PM
Assign button to run macro jamie85 Microsoft Excel Programming 8 3rd Feb 2004 01:44 PM
Assign Macro to button Eric W. Microsoft Outlook VBA Programming 1 15th Jul 2003 06:25 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:49 PM.