+ Reply to Thread
Results 1 to 7 of 7

Hiding 1 Row also hides a different row

Hybrid View

  1. #1
    Registered User
    Join Date
    03-07-2007
    Posts
    26

    Hiding 1 Row also hides a different row

    Is there any Function out there that will allow me to automatically hide an addition row if I were to hide a row on the same sheet.


    For Example:

    I right click on Row 5; then click hide. I would like to automatically hide Row 10 at the same time.


    Thanks
    Nathan

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229
    Is this just 5 and 10 or are there other rows you want paired?

  3. #3
    Registered User
    Join Date
    03-07-2007
    Posts
    26
    thats just one example, but it will be no more than two lines paired together. And it will be the same lines each time and no more than about 12 lines total will be paired.


    For example:
    Hiding line 15 automaticall hides line 84
    Hiding line 25 automatically hides line 88
    and so on.


    thank you
    Nate
    Last edited by Nate5452; 06-15-2007 at 12:04 PM.

  4. #4
    Registered User
    Join Date
    05-21-2007
    Posts
    5
    I would just use simple if statements.

    If Cells(15, 0).EntireRow.Hidden = True Then
    Cells(25, 0).EntireRow.Hidden = True
    End If

    And just write 12 of them for the rows you want to pair.

  5. #5
    Valued Forum Contributor mudraker's Avatar
    Join Date
    11-10-2003
    Location
    Melbourne, Australia
    Posts
    3,983
    RingorSkyrus

    Please read forum rules & wrap your VBA code - see links below


    If you do not understand the VBA code wrap instructions have a look at my last reply in this thread
    http://www.excelforum.com/showthread.php?t=583950
    Please Read Forum Rules Before Posting
    Wrap VBA code by selecting the code and clicking the # icon or Read This
    How To Cross Post politely

    Top Excel links for beginners to Experts

    If you are pleased with a member's answer then use the Scales icon to rate it
    If my reply has assisted or failed to assist you I welcome your Feedback.

  6. #6
    Registered User
    Join Date
    03-07-2007
    Posts
    26
    Didn't work, Maybe I'm not understanding the Code, Thanks though.


    Nate

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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