Dear programmers,
A huge request 4 MACRO that if detects empty cell A2 hide active worksheet.
Something like that:
Spent hours on the project and got stuck on a silly function.Please Login or Register to view this content.
Thanks in advance
Dear programmers,
A huge request 4 MACRO that if detects empty cell A2 hide active worksheet.
Something like that:
Spent hours on the project and got stuck on a silly function.Please Login or Register to view this content.
Thanks in advance
Last edited by AliGW; 02-15-2020 at 06:40 PM.
Hi karajakatak and welcome to the forum.
Try this:
Please Login or Register to view this content.
One test is worth a thousand opinions.
Click the * Add Reputation below to say thanks.
Hi karajakatak and welcome to the forum.
Try this:
The above code must go in a Module and not behind a worksheet.Please Login or Register to view this content.
Thank You vary much,
Works perfectly
One more question. I want to select all sheets except first one in this macro:
Would you help me? Need to make it work in next 8 hours :DPlease Login or Register to view this content.
Last edited by karajakatak; 02-16-2020 at 09:49 PM.
Hey kara,
I'm so glad you got back to me. I didn't like my first code as it should made sheets hidden if they didn't have stuff in A2. See the new code and example attached.
Sheets can be addressed by Name, Index or the "Each" routines. In the new code used the worksheets.count line to find how many sheets there are and the For .. Next .. routine to do the add-on question.
Also - could you edit your reply above, select the code and click on the "#" button to put the code in a box.
(also - thanks for the rep)Please Login or Register to view this content.
VBA Worksheets Each and For Next.xlsm
Much thanks Marvin 4 quick reply
Code works well, we can close a Thread.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks