Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi there guys,
I need to achieve a saveas function with vba from a *.xtl 1) Cell c3 contains a text that will act as the file name. 2) the code needs to use this text as file name and save it to a directory C:\windows\desktop\dummy\. 3) if the file exists then the user needs to be prompted to save or rename in that directory. what I have so far is Workbooks("book1.xtl").SaveAs Filename:="C:\windows\desktop\dummy\" & Range("c2").Value & ".xls" the above works fine until the system finds that the filename exists and instead of asking the user if he wants to save over or change the name it goes into BREAK mode. Can I get around it? Thank you again. Alan |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
SaveAs Filename and FileFormat in Vs2007 | Excel Discussion (Misc queries) | |||
SaveAs using two cells for filename | Excel Discussion (Misc queries) | |||
'ActiveWorkbook.SaveAs Filename' | Excel Programming | |||
Set Saveas Filename from Cell Contents Using VBA | Excel Programming | |||
SaveAs Filename Help | Excel Programming |