Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
When I use the macro below it does save the file as per cell A1 and it does save it to the chosen drive. But it then closes Excel. On checking the file location it is saved there. Any ideas what’s wrong. Thanks John Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean) Dim FileSaveName ChDrive "H" ChDir "H:\Temp" ThisFile = Range("A1").Value ActiveWorkbook.SaveAs Filename:=ThisFile End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save workbook To any USB Drive no matter what drive letter | Excel Programming | |||
Can I save to hard drive AND my flash drive at the same time? | Excel Discussion (Misc queries) | |||
Save to hard drive and backup to thumb drive. | Excel Programming | |||
How do I use a macro to save to a specific drive in Excel? | Excel Programming | |||
Prgrammatically save a file to a specific folder on a network drive | Excel Programming |