Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Add Custom Button to Quick Access Toolbar

Can anyone tell me how to add a customized button to the Quick Access
Toolbar in Excel 2007 that will launch a macro? I'm not talking about
adding additional Microsoft-defined commands, but one of my own.

Thanks,
Randy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Add Custom Button to Quick Access Toolbar

Hi Randy

You can see how I do it here
http://www.rondebruin.nl/qat2.htm




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Randy" wrote in message oups.com...
Can anyone tell me how to add a customized button to the Quick Access
Toolbar in Excel 2007 that will launch a macro? I'm not talking about
adding additional Microsoft-defined commands, but one of my own.

Thanks,
Randy

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Add Custom Button to Quick Access Toolbar

Thanks, Ron. This is really helpful.

Randy

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 21
Default Add Custom Button to Quick Access Toolbar

Ron,
I'm trying to modify this to fit exactly what I am doing. Let's start
at the beginning. Can you tell me how to simply add a button to the
QAT that will launch a macro (even if the macro is nothing more than
than the basic "Hello World" message box).

Thanks again.
Randy

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Add Custom Button to Quick Access Toolbar

Hi Randy

Open a new workbook and save it

Copy this macro in a normal module
http://www.rondebruin.nl/code.htm

Sub test()
MsgBox "Hello Randy"
End Sub

Right click on the QAT and choose Customize Quick Access Toolbar
In the "Choose commands from" dropdown choose Macros and in the Customize Quick Access Toolbar dropdown choose
"YourworkbookName.xlsm"

Select the "test" macro and press Add and then OK.
You can use Modify to change the icon if you want. Then press OK and save the file.

Note : You only have to do this one time because the button is saved with the workbook.
If you send the file to other users they can use your button on the QAT.

See the screenshots on my ribbon page (number 3)




--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"Randy" wrote in message ups.com...
Ron,
I'm trying to modify this to fit exactly what I am doing. Let's start
at the beginning. Can you tell me how to simply add a button to the
QAT that will launch a macro (even if the macro is nothing more than
than the basic "Hello World" message box).

Thanks again.
Randy


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
Easy way to add my custom button on Excel 2010 quick access toolbar? Chet Excel Discussion (Misc queries) 0 April 5th 10 10:21 PM
Button Disappear From Quick Access Toolbar flashrabbit Excel Discussion (Misc queries) 3 October 22nd 09 07:52 PM
Button in quick access toolbar Tigerxxx Excel Discussion (Misc queries) 1 May 11th 09 05:20 PM
How do I customise quick access toolbar button images in Excel 200 Andie Excel Discussion (Misc queries) 1 August 25th 07 12:08 PM
How i modify icon of a customized button in Quick Access Toolbar? Ma3 Excel Programming 2 June 3rd 07 01:40 PM


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