+ Reply to Thread
Results 1 to 7 of 7

how do i hide Multiple rows on multiple sheets based on different cells

  1. #1
    Registered User
    Join Date
    12-06-2019
    Location
    california
    MS-Off Ver
    office 365
    Posts
    53

    how do i hide Multiple rows on multiple sheets based on different cells

    Trying to hide rows of unhidden Tabs[SD] based on cells in sheet. Keep getting type mismatch(sorry i'm Noobing). Thanks in advance,
    D
    Please Login or Register  to view this content.


    End Sub
    Last edited by dwhite11; 08-15-2021 at 12:13 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: how do i hide rows on multiple sheets based on different cells

    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

  3. #3
    Registered User
    Join Date
    12-06-2019
    Location
    california
    MS-Off Ver
    office 365
    Posts
    53

    Re: how do i hide rows on multiple sheets based on different cells

    Changed the code

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,924

    Re: how do i hide Multiple rows on multiple sheets based on different cells

    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.

  5. #5
    Registered User
    Join Date
    12-06-2019
    Location
    california
    MS-Off Ver
    office 365
    Posts
    53

    Re: how do i hide Multiple rows on multiple sheets based on different cells

    right now i have a type mismatch in the line :
    Please Login or Register  to view this content.
    that I dont understand. How do I correctl write rows B through the variable (r).

  6. #6
    Forum Expert
    Join Date
    10-06-2008
    Location
    Canada
    MS-Off Ver
    2007 / 2013
    Posts
    5,535

    Re: how do i hide Multiple rows on multiple sheets based on different cells

    If you insert this line
    Please Login or Register  to view this content.
    after this line
    Please Login or Register  to view this content.
    Do you get what you expect?

  7. #7
    Registered User
    Join Date
    12-06-2019
    Location
    california
    MS-Off Ver
    office 365
    Posts
    53

    Re: how do i hide Multiple rows on multiple sheets based on different cells

    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.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Hide rows in different sheets based on value in front sheet
    By MagicMan in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-30-2019, 07:22 PM
  2. Hide or unhide rows based on value across multiple sheets
    By Casper99 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-26-2016, 08:23 PM
  3. Hide sheets and rows based on multiple criteria
    By toci in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-13-2016, 03:55 PM
  4. HIDE/UNHIDE Rows based on cell value in multiple sheets.
    By yatin1964 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2015, 12:29 AM
  5. [SOLVED] VBA to hide/unhide rows & columns on multiple sheets
    By Adam23 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 10-14-2015, 07:06 PM
  6. [SOLVED] Hide and Unhide rows on multiple sheets based on a validation list on a single sheet
    By bbarth in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 04-30-2015, 02:10 PM
  7. Hide rows on multiple sheets that contain certain text in tab name
    By shawnvon in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-04-2014, 05:17 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1