Cannot Change Sheet Name in VB Editor

nryan

Board Regular
Joined
Apr 3, 2015
Messages
61
Hello,

So, I've highlighted my worksheet "Sheet2 (Instructions)" in the VB editor I pressed F4 to bring up the properties toolbar and I was able to changed the VB name of my worksheet to "Instructions". Therefore, in the VB editor, the worksheet is now called "Instructions (Instructions)". I did this so I can refer to the worksheet in the VB code as Instructions.Yada.Yada.Yada... instead of Worksheets("Instructions").Yada.Yada.Yada.

My problem is when I try to change the name of "Sheet3" to "ProbeSpec" using the same method I get an error "Invalid Property Value (380)". I tried changing the name of that sheet to anything I could think of (ABC, 123, Sheet, etc.) and I still get the same error. Any thoughts?

Thank you.
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.
Worksheets("Instructions") or sheets("Instructions") is far easier to understand written in code that Instructions (Instructions). As you have found changing it round has started causing issues
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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