Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there,
The following code saves the spreadsheet in question, overwriting any existing with the same name, that is found on the Desktop. Question: How can i change this code such that it prompts me to Save As, rather than overwrite? Any help is appreciated greatly, pathToUserDesktop = "C:\Documents and Settings\" & _ Get_Win_User_Name() & "\Desktop\" & newWorkbookName 'save new workbook, but don't nag 'user with "file exists" message Application.DisplayAlerts = False With Workbooks(destBook) 'renames it while saving it 'will overwrite existing file of same name .SaveAs pathToUserDesktop 'close it .Close End With Application.DisplayAlerts = True Application.ScreenUpdating = True -- Carlee |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Save As / Overwrite | Excel Discussion (Misc queries) | |||
How to save a file without overwrite or save a copy? | Setting up and Configuration of Excel | |||
Save as Overwrite prompt | Excel Programming | |||
Save As Overwrite | Excel Programming | |||
Save .csv with overwrite | Excel Programming |