Home |
Search |
Today's Posts |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
This should do it
Sub AASAVETOSTICK() ' AASAVETOSTICK Macro ' Macro recorded 19/03/2007 by * Application.DisplayAlerts = False 'This will turn off the alert ChDir "D:\" ActiveWorkbook.SaveAs Filename:= _ "D:\DWS.xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=False Application.DisplayAlerts = True 'This will turn back on the alert End Sub "pano" wrote: I have the below Macro but would like it not to ask the user before overwriting the file anyway to do this???? Sub AASAVETOSTICK() ' AASAVETOSTICK Macro ' Macro recorded 19/03/2007 by * ' ChDir "D:\" ActiveWorkbook.SaveAs Filename:="D:\DWS.xls", FileFormat:= _ xlNormal, Password:="", WriteResPassword:="", ReadOnlyRecommended:=False _ , CreateBackup:=True End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to write a simple copy-paste macro? | New Users to Excel | |||
How do I keep an excel file from saving to "COPY OF" file name | Excel Discussion (Misc queries) | |||
How do I write an auto macro to undo filtering at statup in Excel | Excel Worksheet Functions | |||
File write protection with copy/paste | Excel Discussion (Misc queries) | |||
is it possible to execute write to the fields in another .xsl form a macro in another .xsl? e.g. some way to load another .xsl into an .xsl macro and write to its data? | Excel Worksheet Functions |