lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
When I run the code below for the first time, I get no error message and file name would change to testing123.xlsx but when I run it for the second time, I get error message saying the file already existed. How can I change that or can I? Thank you very much.
When I run the code below for the first time, I get no error message and file name would change to testing123.xlsx but when I run it for the second time, I get error message saying the file already existed. How can I change that or can I? Thank you very much.
Code:
Sub savewb()
Workbooks(2).SaveAs Filename:="testing123.xlsx"
End Sub