+ Reply to Thread
Results 1 to 7 of 7

Hide rows only on specific worksheets

  1. #1
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Hide rows only on specific worksheets

    Hi All -

    I need help with VBA code to hide rows but only on specific worksheets. I'm not sure if a "case" statement is the way to go about acheiving this,but I tried it and it would only work on the first sheet. I know I'm missing something, just can't figure out what.

    The following code should be performed on all worksheets:
    Please Login or Register  to view this content.
    And this code should only be performed on these worksheets: "Policy Administration", "Policy Issue", "App Processing Services", "Underwriting Decisions", "Initial Claims", "Ongoing Claims Administration", "Claims Examinations"
    Please Login or Register  to view this content.
    Last edited by MissaLissa; 04-14-2014 at 12:24 PM. Reason: spelling

  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,895

    Re: Hide rows only on specific worksheets

    Try this for your first part:

    Please Login or Register  to view this content.
    How many worksheets are there and which ones do not require the second activity.
    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-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Hide rows only on specific worksheets

    Thanks for your help Alan

    There are a total of 13 worksheets and the ones that do not require the second activity are the first 6 worksheets. The worksheets names are "Health Plan Assessments", "UW F2F", "Claims Assessments", "Telephonic", "Care Coordination", "Univita Living".

  4. #4
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Hide rows only on specific worksheets

    For the second code, try this...........
    Please Login or Register  to view this content.
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  5. #5
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Hide rows only on specific worksheets

    Run the following on a sample set:
    Please Login or Register  to view this content.
    Click the * to give Rep to a post you like.

  6. #6
    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,895

    Re: Hide rows only on specific worksheets

    MissaLissa
    Try this:

    Please Login or Register  to view this content.

  7. #7
    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,895

    Re: Hide rows only on specific worksheets

    MissaLissa
    Try this:

    Please Login or Register  to view this content.

  8. #8
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Hide rows only on specific worksheets

    Thanks sktneer... I had to make a few adjustments, but for the most part the combination of both codes worked.

    Thank you both for your help.

  9. #9
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: Hide rows only on specific worksheets

    Glad to help you. Thanks for the feedback.

  10. #10
    Registered User
    Join Date
    12-21-2012
    Location
    Eden Prairie, MN
    MS-Off Ver
    Excel 2010
    Posts
    39

    Re: Hide rows only on specific worksheets

    I actually ended up using Mad-Mizers code... It was all together in nice little package.

+ 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. [SOLVED] Hide All Worksheets Except Specific
    By Kris in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 11-26-2014, 03:45 AM
  2. [SOLVED] First unhide all rows - then hide rows based on specific cell value for a range of cells
    By robbiekh in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-22-2013, 05:46 PM
  3. Hide specific Rows
    By Jakes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2012, 05:22 AM
  4. Need macro to check values and hide/unhide specific worksheets
    By amsnss in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-29-2011, 01:53 PM
  5. Hide all rows where one specific cell in that row = 0?
    By jaydevil in forum Excel General
    Replies: 2
    Last Post: 08-26-2005, 09:48 AM

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