Error, must be simple trick

rplim2016

Board Regular
Joined
Jun 28, 2016
Messages
76
Hello,

Good day Mr. Excel users!


Code:
Sheets("OB Raw").Activate

Above code works fine.



Code:
Sheets("OB Raw").Activate
Sheets("forBacklog").Activate

When I add Sheets("forBacklog").Activate, it doesn't work. But if I run below code, it works just fine.

Code:
Sheets("OB Raw").Activate
Sheets10.Select

Sheet10 is the same as Sheets("forBacklog").Activate



The code is stable for months suddenly this error comes up, but when I use the previous Excel file, it works perfectly fine. Oh yeah, I can just use the old file as a workaround but the data in the file isn't updated anymore so it makes sense as much as possible to use the latest file.

The error message is:

Run-time error '-2147319767 (80028029)
Automation error
Invalid forward reference, or reference uncompiled type.



Hope someone is having a good day and help me and my team.

Cheers!
 
Last edited:

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,213,562
Messages
6,114,326
Members
448,564
Latest member
ED38

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top