+ Reply to Thread
Results 1 to 5 of 5

Hide rows up to item found

  1. #1
    Registered User
    Join Date
    05-28-2009
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    16

    Hide rows up to item found

    I have a sheet with somewhere in a1:a100 there is text "company". I would like to hide all rows up to and including that row

  2. #2
    Forum Contributor GuruWannaB's Avatar
    Join Date
    01-24-2008
    Location
    An hour due East of Cowtown Ohio
    MS-Off Ver
    2010
    Posts
    421

    Re: Hide rows up to item found

    Question..."up to and including" - do you mean row 1 through the row with "company" or do you mean row 100 up to the row including "company"?

    I guess basically, do you want the rows above or below the row with "Company" left showing?

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Hide rows up to item found

    Company and above (which can be found somewhere a1:100)

    e.g. if "company" is on row 30 than I want to hide rows 1 through (and including) 30

    My first try at vba... but this it what I was trying:

    Please Login or Register  to view this content.
    But this doesn't work as I'm doing something wrong
    Last edited by itcheg; 05-28-2009 at 06:39 PM.

  4. #4
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Hide rows up to item found

    itcheg,

    Please edit your post to add code tags.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Registered User
    Join Date
    05-28-2009
    Location
    Miami
    MS-Off Ver
    Excel 2003
    Posts
    16

    Re: Hide rows up to item found

    I worked it out, figured I would share it.

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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