AirforceMook
New Member
- Joined
- Sep 5, 2011
- Messages
- 9
Hello there,
I have a worksheet in 2003 that uses a one second timer to update (Application.OnTime) various information.
When I switch to a new tab or move to a new excel sheet, with this still running in the background, I immediately get the "end/debug" box. My thought is that this is because the new tab/book does not contain whatever information the script is attempting to locate. I'm trying to find a way for the script to function normally w/o trying to access anything but its own contents.
I've tried setting a variable for the activework book and sheets, using:
My thought is that it would then reference the old workbook and sheets, but it doesn't seem to have any effect. No matter what I do, the error persists.
Any help?
I have a worksheet in 2003 that uses a one second timer to update (Application.OnTime) various information.
When I switch to a new tab or move to a new excel sheet, with this still running in the background, I immediately get the "end/debug" box. My thought is that this is because the new tab/book does not contain whatever information the script is attempting to locate. I'm trying to find a way for the script to function normally w/o trying to access anything but its own contents.
I've tried setting a variable for the activework book and sheets, using:
Code:
wb.Sheets("Status").Cells(i,4).Value = blah blah blah
My thought is that it would then reference the old workbook and sheets, but it doesn't seem to have any effect. No matter what I do, the error persists.
Any help?