Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a macro that will allow my users to export particular colomns
of a worksheet to a tab delimited file and I would like to insert a "Save as Text" option in the "File" menu just after the "Save as..." action. I was able to create a new menu option and add my macro to that but I am stuck on how to insert it in the "File". I have tried with the recorder but that did not work. Any help will be appreciated. |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub addit()
Set subitem = Application.CommandBars("File") _ ..Controls.Add(Type:=msoControlButton, befo=6) subitem.Caption = "Save As Text" subitem.OnAction = "themacro" End Sub Sub removeit() Application.CommandBars("File").Controls("Save As Text").Delete End Sub These can be called on workbook_open and BeforeClose Or Activate and Deactivate Gord Dibben MS Excel MVP On Fri, 11 Sep 2009 12:18:37 -0700 (PDT), Dirk wrote: I have a macro that will allow my users to export particular colomns of a worksheet to a tab delimited file and I would like to insert a "Save as Text" option in the "File" menu just after the "Save as..." action. I was able to create a new menu option and add my macro to that but I am stuck on how to insert it in the "File". I have tried with the recorder but that did not work. Any help will be appreciated. |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks for the help. I do appreciate it.
|
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA:programmatically invoking menu items from Excel Worksheet menu | Excel Programming | |||
Cannot insert worksheet in exel - not available in insert menu | Excel Worksheet Functions | |||
Insert symbol menu | Excel Discussion (Misc queries) | |||
New Menu on Worksheet & Chart Menu Bars | Excel Programming | |||
chart menu bar vs worksheet menu bar | Excel Programming |