HomePro
Board Regular
- Joined
- Aug 3, 2021
- Messages
- 157
- Office Version
- 365
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
- 2003 or older
- Prefer Not To Say
- Platform
- Windows
- MacOS
- Mobile
- Web
I would like to save the file without being prompted at the end of my existing macro.
I would prefer:
A variable to preset the file name
A variable to preset the location
And then the current date.
So i tried :
Sub Save()
FN="Test1"
lc ="C:\documents"
DT= (today)
ActiveWorkbook.SaveAs filename:=LC & FN &DT ".xls"
End Sub
wont work.
Any ideas?
I would prefer:
A variable to preset the file name
A variable to preset the location
And then the current date.
So i tried :
Sub Save()
FN="Test1"
lc ="C:\documents"
DT= (today)
ActiveWorkbook.SaveAs filename:=LC & FN &DT ".xls"
End Sub
wont work.
Any ideas?