Hide/Unhide Excel File/s.

omairhe

Well-known Member
Joined
Mar 26, 2009
Messages
2,040
Office Version
  1. 2019
Platform
  1. Windows
Hey all,

I have a stock management .xlsm files for each month of the year 2019

These are named as follows in the folder named = Stock Share

01. January, 2019
02. February, 2019
03. March, 2019
04. April, 2019
05. May, 2019
06. June, 2019
07. July, 2019
08. August, 2019
09. September, 2019
10. October, 2019
11. November, 2019
12. December, 2019

On executing the code a text box should be introduced for the end-user to select any one month from these 12 months based on the first 2 digits
.
So that if the end-user inputs 01 for 01. January, 2019 this will unhide 01. January, 2019.xlsm and hide feb to dec.
But if the user inputs 06 for 06. June, 2019 this should Unhide all months from January to June and hide all months from July to December. and so on.

This would need ntfs file properties privileges?

Is it possible ?
Thank you and will appreciate.
 
Last edited:

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
The vba that does this will have to reside inside each month's module sheet..
 
Upvote 0

Forum statistics

Threads
1,223,893
Messages
6,175,246
Members
452,623
Latest member
cliftonhandyman

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