Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi. I'm trying to create a macro to save as a new document, but I keep
getting a run-time error message when I run it. What it's supposed to do is ask the user if they want to save it as a new document, if yes, then it should go through the normal save as procedure (and I'm trying to point it to a specific directory), if no, then the spreadsheet will just save. Here's the code I have written. I'm no expert, I'm really just learning this as I go, so please be gentle. :) Thanks! If MsgBox("Do you want to Save this to a new file?" _ , vbYesNo, "Save As") = vbYes Then ActiveWorkbook.SaveAs Filename:="S:\Sales\.xls" Else ActiveWorkbook.Save |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
"Save" and "Save As" options greyed out - "Save as Webpage" option | Excel Discussion (Misc queries) | |||
Macro to concatenate into "B1" B2 thru B"x" based on new data in "Col A" | Excel Discussion (Misc queries) | |||
Running a macro "On Save" | Excel Discussion (Misc queries) | |||
"Save as" macro problems | Excel Discussion (Misc queries) | |||
Macro to create "path" for save | Excel Discussion (Misc queries) |