Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88835

Windows.Activate - Run-time error '9': Subscript out of range - When using wildcard "*"

$
0
0

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

Viewing all articles
Browse latest Browse all 88835

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>