+ Reply to Thread
Results 1 to 5 of 5

Auto Hide & Unhide Rows Upon Sheet Selection

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    24

    Question Auto Hide & Unhide Rows Upon Sheet Selection

    I've searched and searched for code on this, but can't find exactly what I'm looking for. I've found a few different codes that work great at hiding the rows, but don't update when data is refreshed. I need to accomplish this without buttons, so when data is changed, the rows are automatically updated once the tab is selected.

    Here are the particulars:
    - Report tab pulls data from other tabs in the workbook.
    - Rows pulling "0" in Column A should be hidden.
    - Rows pulling "<>0" in Column A should be unhidden.
    - The macro should automatically run when the Report tab is selected.
    - No Manual running
    - No constant running when data is changed on the source tabs to keep from slowing the file.

    If you need a dummy workbook, let me know. Otherwise, it seems pretty straight forward, I'm just a newbie at coding. TIA.

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Auto Hide & Unhide Rows Upon Sheet Selection

    Is the data on the sheet in a proper table format with a header row?
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    08-24-2009
    Location
    Dallas
    MS-Off Ver
    Excel 2007
    Posts
    24

    Re: Auto Hide & Unhide Rows Upon Sheet Selection

    Quote Originally Posted by royUK View Post
    Is the data on the sheet in a proper table format with a header row?
    Are you referring to the report sheet or the data source sheets?

    The report sheet does have headers for each column. The source sheets do as well, but the data is not continuous on them.

    If I can get passed this issue, my next issue will be reformatting the print on the report tab to look acceptable when the report shrinks and grows.

    Thanks again.

  4. #4
    Registered User
    Join Date
    01-23-2013
    Location
    Bangladesh
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Auto Hide & Unhide Rows Upon Sheet Selection

    Dear All
    I can hide and unhide some rows from a excel sheet only one time (One rang) but I Need to multiple rang in one worksheet. Please help me.

    Thsnaks

  5. #5
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Auto Hide & Unhide Rows Upon Sheet Selection

    Shofiqfatema,

    Unfortunately you need to post your question in a new thread, it's against the forum rules to post a question in the thread of another user. If you create your own thread, any advice will be tailored to your situation so you should include a description of what you've done and are trying to do. Also, if you feel that this thread is particularly relevant to what you are trying to do, you can surely include a link to it in your new thread.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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