duplicate sheets in vba project

joecast

Board Regular
Joined
Mar 4, 2010
Messages
52
hello all,
i am sure i have seen this before, but not able to fix this time. i have a workbook in which i have deleted some sheets which were no longer needed. now when i look at the excel objects i get this:

-- removed inline image ---

each sheet has a second "version" with a 1 postfix. also the Remove Sheet option is not available when i right click.
the last piece of the puzzle is in order to get the macros to work, i had to copy the code in each sheet object from for example, Sheet12 to Sheet121 and Sheet4 to Sheet41, etc.

does anyone know why this has happened? and also how do i remove the extra sheets? Thanks
Joe
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
I had the same problem. I got this when I manually inserted VBA bin file into new workbook. I think the solution is to create new workbook and copy all code there.
 
Upvote 0
thanks, hopefully thats not the only way around this. the workbook still operates fine, but all the formatting within the sheets means it would take ages to get a new workbook ready to use the code. copying the code across would be fairly straightforward though. cheers
joe
 
Upvote 0

Forum statistics

Threads
1,224,594
Messages
6,179,795
Members
452,943
Latest member
Newbie4296

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