Copying hidden worksheets.

OfficeUser

Well-known Member
Joined
Feb 4, 2010
Messages
544
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Is it possible to copy a hidden worksheet without making it visible? I am trying to keep a particular sheet from ever getting deleted, thus why I use am using a command button to always make a copy of it, but I am trying to always keep it hidden. Thanks.
 

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.
Hi,

You can copy a hidden sheet, but not a veryhidden sheet.

Sheet1.Visible = xlSheetHidden
 
Upvote 0
Ok. I was unaware of x1SheetHidden. I will give it a try. But first I am off to learn the differences between the two. Thanks.
 
Upvote 0
Well I tried it but have been unsuccessful thus far. Here is the code I am have attached to a command button:
Code:
Sheets("Backup").Copy After:=ActiveSheet
    Sheets("Backup (2)").Select
    Sheets("Backup (2)").Name = "Measures"

I changed Sheets("Backup") to your suggested code.
 
Upvote 0
Ok, I sorted it out. It is working as intended. User error on my part. Thanks.
 
Upvote 0
Hi,

xlsheetveryhidden can't be Unhidden from with Excel you have to unhide it from VBE.

If xlsheetHidden is used, users can unhide it from the excel,

Format>Sheet>Unhide

This is the difference between xlsheetHidden and xlsheetVeryHidden
 
Upvote 0

Forum statistics

Threads
1,224,548
Messages
6,179,445
Members
452,915
Latest member
hannnahheileen

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