VBA by itself renaming "ThisWorkbook" as one of the codesheet's name?

Muir2014

New Member
Joined
Feb 20, 2014
Messages
22
For some reason Excel VBA is renaming ThisWorkbook as one of the CodeSheets' name contained within the workbook :

I'm having a hiccup that I haven't find the solution, originally one of the CodeSheet name was --> "ShMC", then VBA changed it to ShMC1 and the "ThisWorkbooK" was renamed as "ShMC".
There are no events in this sheet other than "clicks" events, none of then are named as "ShMC", and no procedure is named as "ShMC".

I have a copy of the workbook, and don't know if at sometime I had both workbooks opened at the same time, and maybe this is the cause.

I need guidance in this matter, and thanks in advanced.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
I have been through this many times and have to fix it many times. The real problem is that the sheet is on the New codename and the VBA code is on the Thisworkbook version

Let me find a link to where I posted the Solution
 
Upvote 0
The problem seems to come back it the file remains as .xslm. I have taken a huge amount of time trying to figure out what causes it. I originally thought it was Excel Tables. I think it is very complex and large sheets.

*.xlsb files don't get the problem
 
Upvote 0
The problem seems to come back it the file remains as .xslm. I have taken a huge amount of time trying to figure out what causes it. I originally thought it was Excel Tables. I think it is very complex and large sheets.

*.xlsb files don't get the problem
Hi Jeffrey, I had this problem in the past and I couldn't remember what did I do about it, I just remember I never found the cause, I think I did what you suggested as saving as xlsx, then as xlsm, I'll try that again, thanks a bunch!!
 
Upvote 0

Forum statistics

Threads
1,215,107
Messages
6,123,126
Members
449,097
Latest member
mlckr

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