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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
The vba that does this will have to reside inside each month's module sheet..
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,170
Members
453,021
Latest member
Justyna P

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