Trying to hide rows of unhidden Tabs[SD] based on cells in sheet. Keep getting type mismatch(sorry i'm Noobing). Thanks in advance,
DPlease Login or Register to view this content.
End Sub
Trying to hide rows of unhidden Tabs[SD] based on cells in sheet. Keep getting type mismatch(sorry i'm Noobing). Thanks in advance,
DPlease Login or Register to view this content.
End Sub
Last edited by dwhite11; 08-15-2021 at 12:13 PM.
Administrative Note:
Welcome to the forum.
We would very much like to help you with your query, however you need to include code tags around your code.
Please take a moment to add the tags. Posting code between [code]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/code] tags makes your code much easier to read and copy for testing, and it also maintains VBA formatting.
Please see Forum Rule #2 about code tags and adjust accordingly. Click on Edit to open your post, then highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here
(Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
Alan עַם יִשְׂרָאֵל חַי
Change an Ugly Report with Power Query
Database Normalization
Complete Guide to Power Query
Man's Mind Stretched to New Dimensions Never Returns to Its Original Form
Changed the code
When you get the error message, click on Debug. Tell us which line of code is highlighted.
Also, in your code, you have indicated that your variable I is equal to 1 but then you indicated in your loop that I should run from 2. I think this may be part of the problem but really need to have you debug.
right now i have a type mismatch in the line :
that I dont understand. How do I correctl write rows B through the variable (r).Please Login or Register to view this content.
If you insert this line
after this linePlease Login or Register to view this content.
Do you get what you expect?Please Login or Register to view this content.
I am not trying to name the sheets, I am trying to hide rows on unhidden sheets based on a cell in each row, on Tabs/Sheets based on a the variable [SD](which determines the number of sheets unhidden from a cell).
Last edited by dwhite11; 08-15-2021 at 11:53 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks