+ Reply to Thread
Results 1 to 3 of 3

Macro to hide rows containing data in range

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Macro to hide rows containing data in range

    Hi,

    I have the following Macro that hides rows that contain old dates (in column B) in a range:

    Please Login or Register  to view this content.
    However is there a way I can get it to only calculate rows if there is actually data in column B? At present it calculates for the whole range so it takes several seconds.

    Is this possible? Thank you in advance.
    Last edited by jpruffle; 07-22-2009 at 04:42 AM.

  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: Macro to hide rows containing data in range

    This should be faster, with no screen flicker
    Please Login or Register  to view this content.
    Without seeing your data layout it's hard to say, but autofilter would be quicker than looping
    Hope that helps.

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

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    MS-Off Ver
    Excel 2007 (also have access to Excel 2000/2003)
    Posts
    368

    Re: Macro to hide rows containing data in range

    That's fantastic thank you. Works a treat.

+ 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