Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Adding/Deleting from toolbars using VBA

Rob Bovey wrote in message of 05-11-2003 (see thread: "How can I get into VBA for costum toolbar ?")
"In order to modify an attached toolbar you first need to remove it from the workbook by selecting it and clicking the Delete button. The toolbar will still be available in Excel. Make your modifications to it and then reattach it to the workbook by going back into the Attach Toolbars dialog, selecting the toolbar from the left-hand listbox and clicking the Copy button to add it to the workbook. Click OK until your out of all the dialogs and be sure to save the workbook or the changes won'
stick.

How can the above procedure be done using VBA code

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7,247
Default Adding/Deleting from toolbars using VBA

Carsten,

As far as I know, you can't change (attach or delete) toolbars
contained in workbooks with VBA.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"Carsten" wrote in message
...
Rob Bovey wrote in message of 05-11-2003 (see thread: "How can

I get into VBA for costum toolbar ?"):
"In order to modify an attached toolbar you first need to

remove it from the workbook by selecting it and clicking the
Delete button. The toolbar will still be available in Excel. Make
your modifications to it and then reattach it to the workbook by
going back into the Attach Toolbars dialog, selecting the toolbar
from the left-hand listbox and clicking the Copy button to add it
to the workbook. Click OK until your out of all the dialogs and
be sure to save the workbook or the changes won't
stick."

How can the above procedure be done using VBA code ?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Adding/Deleting from toolbars using VBA

what exactly do you want to do?


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default SV: Adding/Deleting from toolbars using VBA

I have a userdefined toolbar (attached to an Excel project) in which one of the buttons are activating an invalid ("wrong") vba macro.
I want to "unattach" the toolbar from the project - let the button point to another vba macro - reattach the toolbar to the project - and save the project with this "new" toolbar.
Can this be done in VBA ?

----- greg prost skrev: -----

what exactly do you want to do?
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
Adding macros to toolbars Elsa Excel Discussion (Misc queries) 1 January 30th 07 09:38 PM
Adding and deleting rows with formulas ****Need Help**** [email protected] Excel Discussion (Misc queries) 5 May 31st 06 05:42 PM
how to protect sheet from adding/deleting Scott Excel Discussion (Misc queries) 1 February 16th 05 05:21 PM
Adding and deleting Range Names Paul Excel Programming 1 October 1st 03 10:56 AM
Adding / Deleting from toolbars Steven Revell Excel Programming 4 September 24th 03 02:20 PM


All times are GMT +1. The time now is 12:57 AM.

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"