chuckles1066
Banned
- Joined
- Dec 20, 2004
- Messages
- 372
I have a macro that checks that another file is open before doing anything else - if the file isn't open a message box pops up informing the user and then exits the sub.
Worked fine yesterday.
Today I've run it and it falls over at this point - I think it was error 404 or similar, "object required".
I have acquired a little knowledge of VBA and so moved the Dim wb as Workbooks reference out of the global bit at the start of the macro and down to the relevant bit of code.
Now it works fine.
But, just so I'm armed for future reference, why would something work yesterday and not today?
Worked fine yesterday.
Today I've run it and it falls over at this point - I think it was error 404 or similar, "object required".
I have acquired a little knowledge of VBA and so moved the Dim wb as Workbooks reference out of the global bit at the start of the macro and down to the relevant bit of code.
Now it works fine.
But, just so I'm armed for future reference, why would something work yesterday and not today?