In my tool I first let user open the workbook he or she desire
MyFileName = Application.GetOpenFilename(FileFilter:="Excel Files, *.xl*;*.xm*")
If MyFileName <> False Then
Workbooks.Open Filename:=MyFileName
End If
and later on when I want to activate that file again (after opening it gets all necessary variables and goes to another workbook, the one with the tool by ThisWorkbook command) it does not work
I've tried it by doing this
Workbooks(MyFileName).Activate
Whats more important, If i do MsgBox MyFileName it clearly states the path for the MyFileName thus I don't understand why it does not activate this workbook at all - subscript out of range