I am attempting to build a macro that will activate a window. And the file name updates daily with the current date. My issue seems to arise when I try to incorporate the wildcard "*". I receive a
Run-time error '9'.
And I do not have an error if I enter the file name exactly.
I have tried several variations. Every discussion that I've found leads me to believe it should work. Can anyone help me work this out?
File Name: 01032020_ACES Pipeline Mgmnt Tracking Report.xlsb
Sub WindowActivate()
Windows("*"& "_ACES Pipeline Mgmnt Tracking Report.xlsb").Activate
End Sub