Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am re-asking this as I'm not getting any info back and project is needed.
I have a protected workbook template named Reinsurance.xlt which I assign a macro to toolbar button, macro is called 'SaveToDrive'. I created the toolbar and then used Commands, Macros, Cutom Button. Right click on button to assign macro ' SaveToDrive'. Macro saves as entry in cell A12. Lets's say I enter 'BJS1' into this cell, it saves as BJS1.xls. If I open the template and look at the assign macro, it now says 'c:\BJS1.xls' ! SaveToDrive not 'Reinsurance.xlt' !SaveToDrive. The template save is written like this: sFilename = "c:\" + strcell" ActiveWorkbook.SaveAs Filename:=sFilename, _ FileFormat:=xlNormal, _ ReadOnlyRecommended:=False, _ CreateBackup:=False Application.Quit Application.StatusBar = "Application Closing." Am I missing something on the save or am I doing something wrong in assigning the macro? I've used this same method in Word to save files and the macro never changes. Thanks, Bryan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Assign Macro to Icon on toolbar | Excel Discussion (Misc queries) | |||
Excel 2003 - assign macro to custom toolbar button | Excel Discussion (Misc queries) | |||
Assign macro to WB-specific toolbar button? | Excel Programming | |||
Assign ShortCut-key To Toggle VBA-toolbar? | Excel Programming | |||
Assign macro to toolbar custom button? | Excel Programming |