Hello,
I have a mystery on my hands.
I wrote a macro that involves opening another excel file, then activating it using
When I run this code, filename is the name of an excel file EXCLUDING .xls, and it runs just fine! I then sent the macro to a friend of mine, and it wouldn't work for him. We eventually got it to work but had to add .xls to the filename:
Why would the original code have worked on my computer but not his?
Thanks!
Jason F.
I have a mystery on my hands.
I wrote a macro that involves opening another excel file, then activating it using
Code:
'Activate Data Log workbook
Windows(filename).Activate
When I run this code, filename is the name of an excel file EXCLUDING .xls, and it runs just fine! I then sent the macro to a friend of mine, and it wouldn't work for him. We eventually got it to work but had to add .xls to the filename:
Code:
'Activate Data Log workbook
Windows(filename & ".xls").Activate
Why would the original code have worked on my computer but not his?
Thanks!
Jason F.