Excel - Button for a Macro

Asked By Gary''s Student
21-Nov-09 08:26 AM
Excel 2007

is it possible to put something on the Quick Access Toolbar that will allow
me to run a macro with one click?
--
Gary''s Student - gsnu2007xx
Excel 2007
(1)
Workbook
(1)
Macro
(1)
Toolbar
(1)
MyBook
(1)
Icon
(1)
B54ebf267a9a
(1)
Gsnu200909
(1)
  Mike H replied to Gary''s Student
21-Nov-09 08:55 AM
Try this

Right click the QA Toolbar  and select Customise.
From the left dropdown choose 'Macros' and scroll to your macro and then
click ADD
On the right click modify and from the popup select an Icon
OK

Mike
  JLatham replied to Gary''s Student
21-Nov-09 09:00 AM
Yes.
Click the drop-down arrow at the right edge of the QAT and choose "More
Commands".
That'll take you to a probably familiar looking window where you can choose
macros to choose from.  The macro icon will be a flowchart kind of icon.
Hovering over the icon will show the macro's name as a tip eventually.
  Jacob Skaria replied to Gary''s Student
21-Nov-09 09:01 AM
Click on 'Customize QAT'>More commands>select 'Macros' from 'Choose commands
from' drop down will populate any available macros. Select the macro and
click Add will add an icon in QAT.

If this post helps click Yes
---------------
Jacob Skaria
  Gary''s Student replied to Mike H
21-Nov-09 09:03 AM
Thanks!
--
Gary''s Student - gsnu200909
  Gary''s Student replied to JLatham
21-Nov-09 09:04 AM
Thanks!
--
Gary''s Student - gsnu200909
  JLatham replied to Gary''s Student
21-Nov-09 09:04 AM
I should have added that it is probably best to have the macro in your
Personal file, since that icon is going to become a somewhat permanent
addition to the QAT.  You have to go through the same Customize process, but
explicitly choose to remove the icon to get rid of it.
  Peter T replied to JLatham
21-Nov-09 12:43 PM
Just to add, if the macro should only be available in a particular workbook,
when adding to the QAT (as others have described) in the top right dropdown
select "For myBook.xlsm".  The button will only appear when myBook is
active.

However, due to a bug introduced in SP2, when the file is closed & reopened
the button will no longer appear. Ron de Bruin describes how to fix here -
http://www.rondebruin.nl/qatbuttonbug.htm

Regards,
Peter T
  JLatham replied to Gary''s Student
21-Nov-09 02:13 PM
You're welcome.

Also, if you have not seen it, you should check out Peter T's response to my
second post in the thread.  Has some good added information about managing
that added button:
http://www.microsoft.com/office/community/en-us/default.mspx?dg=microsoft.public.excel.programming&mid=181ceb17-e4ae-4b3a-8150-b54ebf267a9a
  JLatham replied to Peter T
21-Nov-09 02:35 PM
Thanks for the added information, ends up making things work a lot better in
the end.
Create New Account
help
Creating macro enabled Excel 2007 workbook Excel I need to create a macro enabled Excel 2007 workbook from a routine in another workbook. I have tried using the workbook.add method but it does not support the macro
Manage a high number of worksheets in one workbook (Excel 2007) Excel Excel 2007: Many of the workbooks I deal with have 20+ sheets. I'd like a more practical method to view all sheets (tabs at bottom of workbook) than scrolling or right clicking and seeing a list. . . Is there any way to 'stack the tabs, say three high, across the bottom of the workbook so that all are immediately visible and accessible? Excel Miscellaneous Discussions Microsoft Excel (1) Excel
How can somebody with Excel 2003 read Excel 2007 Excel I have an Excel 2007 and would like so send an email to a freind with excel 2003 . How can he read my excel workbook? Excel Setup Discussions Excel 2007 (1) Excel 2003 (1) Workbook (1) Freind (1) Either
Excel 2007 Excel I need to print the properties for an excel 2007 workbook. I cannot seem to find where to do that. It is not the same as printing Word doc properties. Excel Miscellaneous Discussions Excel 2003 (1) Excel 2007 (1) Word (1) Workbook (1) Cawhitaker (1) I am not sure
How can somebody with Excel 2003 read Excel 2007 Excel I have an Excel 2007 and would like so send an email to a freind with excel 2003 . How can he read my excel workbook? Excel Setup Discussions Excel 2007 (1) Excel 2003 (1) Workbook (1) Freind (1) Check