To all the macro specialists out there…
When running a macro I sometimes got an “Automation error”. When I say sometime, it’s really sometime; I can run the macro +100 times with different selections (resulting in different parts of the macro executed) with no problem and the next time BANG Automation error
The complete message box looks like:
Run-time error -2147417848(80010108):
Automation error
The object invoked has disconnected from its clients.
Four buttons: Continue (disabled), End, Debug and Help
Both End and Debug result in a new message box:
Excel has generated errors and will be closed by Windows. End of the story
Now the strange part….
When I restart Excel, open the workbook and go to the VBA code no subroutine name appear in both “General” and “Declarations” drop down boxes. I can see all the code but it seems that Excel can’t split it in different controls-code, routines and functions…
I can start the macro (button on a sheet), all the controls works even the code behind the controls works but at a certain part in the code BANG Automation error
One thing is sure; you can forget about that file, it won’t work well any more.
For that reason I keep a copy of a working workbook. I make a copy of the copy, rename it and I can go on.
I’m sure there’s a better way to work, resolve the Automation error, but where do I start … …
Any help is greatly appreciated
If you need further information, let me know
When running a macro I sometimes got an “Automation error”. When I say sometime, it’s really sometime; I can run the macro +100 times with different selections (resulting in different parts of the macro executed) with no problem and the next time BANG Automation error
The complete message box looks like:
Run-time error -2147417848(80010108):
Automation error
The object invoked has disconnected from its clients.
Four buttons: Continue (disabled), End, Debug and Help
Both End and Debug result in a new message box:
Excel has generated errors and will be closed by Windows. End of the story
Now the strange part….
When I restart Excel, open the workbook and go to the VBA code no subroutine name appear in both “General” and “Declarations” drop down boxes. I can see all the code but it seems that Excel can’t split it in different controls-code, routines and functions…
I can start the macro (button on a sheet), all the controls works even the code behind the controls works but at a certain part in the code BANG Automation error
One thing is sure; you can forget about that file, it won’t work well any more.
For that reason I keep a copy of a working workbook. I make a copy of the copy, rename it and I can go on.
I’m sure there’s a better way to work, resolve the Automation error, but where do I start … …
Any help is greatly appreciated
If you need further information, let me know