Windows().Activate works on every computer except one

Whether or not you can leave off the file extension when calling (eg)

Windows("MyxlsbFile") 

or

Workbooks("MyxlsbFile")

depends on whether the Windows Explorer setting “hide extensions for known file types” has been checked or not: if file extensions are shown in Windows Explorer then you must include the extension when calling WorkBooks().

I’m guessing this is the issue on the one PC where you have the problem.

Including the file extension always works (as long as there’s no other error of course)

Leave a Comment