s_woodbury
New Member
- Joined
- Feb 26, 2014
- Messages
- 27
I have a script that makes the user choice which xls file to use. The script saves the file with a unique name by using todays date.
That works, it's when I try to use Windows(xxxxxxxxxxx).Activate that I have problems.
Here's how I save the file.
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\swoodbury\Documents\Old HR LO List-" _
& Format$(Date, "MMDDYYYY") _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
What can I use to activate that window? I tried:
Windows("New HR LO List-" & Format$(Date, "MMDDYYY") & ".xls").Activate
Any advice is appreciated! Thanks - Scott
That works, it's when I try to use Windows(xxxxxxxxxxx).Activate that I have problems.
Here's how I save the file.
ActiveWorkbook.SaveAs Filename:= _
"C:\Users\swoodbury\Documents\Old HR LO List-" _
& Format$(Date, "MMDDYYYY") _
, FileFormat:=xlOpenXMLWorkbook, CreateBackup:=False
What can I use to activate that window? I tried:
Windows("New HR LO List-" & Format$(Date, "MMDDYYY") & ".xls").Activate
Any advice is appreciated! Thanks - Scott