Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
I'm getting back to this old question, some problems doesn't go away. I have this macro and it works fine until invoice has already been saved. First ofcourse excel wants to know if I want replace earlier file - no - next popup is "Runtime error 1004 Method 'SaveAs' of object '_Workbook' failed. How can I get excel to say for ex "file couldn't be saved, check nr or receiver OR replace older file" This problem doesn't come up if I want replace old file. Sub Macro1() ActiveWorkbook.SaveAs Filename:="D:\SentInvoices\" & Range("C3").Value _ & Range("A8").Value & ".xls", _ FileFormat:=xlNormal, _ Password:="", _ WriteResPassword:="", _ ReadOnlyRecommended:=False, _ CreateBackup:=False End Sub |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Adding the contents of a cell to a formula | Excel Discussion (Misc queries) | |||
Conversion of Cell Contents into a Functional Worksheet name ? | Excel Worksheet Functions | |||
File name equal cell contents | Excel Discussion (Misc queries) | |||
Copy cell format to cell on another worksht and update automatical | Excel Worksheet Functions | |||
make cell contents equal to null value - not blank, but empty | Excel Worksheet Functions |