Jeffrey Mahoney
Well-known Member
- Joined
- May 31, 2015
- Messages
- 3,212
- Office Version
- 365
- Platform
- Windows
I'm having a problem with one particular workbook. I have a worksheet with a table that is 916 columns by 126 rows. In the VBA project I had changed the Code name to CostDetails.
Somehow, the sheet got copied twice only in VBAproject. The Code Names for the two copies are CostDetails and CostDetails1 and then the real sheet code name got changed to CostDetails11. All the sheet code moved into CostDetails1. When I click the two copies, the properties window shows the name for both as ThisWorkbook.
This happened once before on this workbook. I spent a huge amount of time making a duplicate from scratch by copying the values and adding the cell formats & formulas manually.
In the snapshot below, you can see that I changed the code name of the real sheet to CostDetSht to temporarily solve the problem.
Does anyone know of a way to fix this and prevent this?
UPDATE: It seems to keep making copies if I change the code name of the REAL sheet
Somehow, the sheet got copied twice only in VBAproject. The Code Names for the two copies are CostDetails and CostDetails1 and then the real sheet code name got changed to CostDetails11. All the sheet code moved into CostDetails1. When I click the two copies, the properties window shows the name for both as ThisWorkbook.
This happened once before on this workbook. I spent a huge amount of time making a duplicate from scratch by copying the values and adding the cell formats & formulas manually.
In the snapshot below, you can see that I changed the code name of the real sheet to CostDetSht to temporarily solve the problem.
Does anyone know of a way to fix this and prevent this?
UPDATE: It seems to keep making copies if I change the code name of the REAL sheet