MAMIBUSSOL
Board Regular
- Joined
- Jun 2, 2011
- Messages
- 95
I use this code to create a new workbook
if the file doesn't exist, works as planned, however if the file being created exists I get a replace error message, Is there any way to just create the file without user entry
Code:
Sub ABBOTS()
Workbooks.Add
ChDir "C:\Documents and Settings\Admin\Desktop"
ActiveWorkbook.SaveAs Filename:= _
"C:\Documents and Settings\Admin\Desktop\WAGES.xls", FileFormat:=xlExcel8, _
Password:="", WriteResPassword:="", ReadOnlyRecommended:=False, _
CreateBackup:=False
End Sub
if the file doesn't exist, works as planned, however if the file being created exists I get a replace error message, Is there any way to just create the file without user entry