Vba Hiding and Unhiding Sheets

CorneWessels

New Member
Joined
Jan 13, 2022
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi
I'm having trouble with my VBA
I want to have a code that automatically hides and unhides the sheets based off of an entry in the first sheet of names
So if the name is entered in the first sheet it must automatically uhide the sheet and if the name is not entered it must be hidden.
Will someone please be able to help me.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
You probably need to explain how the name is entered.

When you open a workbook, what would happen first? All the sheets are hidden and only a pop-up userform prompting for sheet name?
 
Upvote 0
You probably need to explain how the name is entered.

When you open a workbook, what would happen first? All the sheets are hidden and only a pop-up userform prompting for sheet name?When the workbook is opened all the sheets are iunhidden
When the workbook is open all the sheets are unhidden and on the first sheet is a list of the rest of the sheets names, when a name is entered next to a specific sheet it fills out the information of said sheet and that sheet is then needed, so I want the sheets that have no names and are then blank to be hidden when I want to print the entire document to PDF but I cant figure out the code to get it that when the sheet is blank is should automatically be hidden.
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,255
Members
448,556
Latest member
peterhess2002

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