+ Reply to Thread
Results 1 to 9 of 9

hide row if "y" in column m

  1. #1
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723

    hide row if "y" in column m

    hi,



    what i would like to do is hide a row if i put a "y" in that row in column M
    there will be a least 500 rows

    thanks steve

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Why not use AutoFilter?
    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
    08-10-2006
    Posts
    723
    roy,

    i am working in china they do not know much about excel
    a button would be good

    steve

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    use the macro Recorder to get the basic autofilter code, then post back if you need help to finish the code.

  5. #5
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    Would a formula do it?

    Roy,

    Would a formula in the last column ofo the row do it? I don't know the syntax, but it seems like if there was a formula, the row would auto hide if someboy put a "Y" in column M. Somehting like:

    =IF(M1="Y",row.height=0,row.height=12.25)

    I know the row.height is wrong. I'm just curious myself.

  6. #6
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    A formula or function cannot usually physically affect a sheet.

    A VBA solution could involve a loop to find & hide all rows where Y is entered or autofilter which can be automated with VBA. The autofilter IMO would be the most efficient

  7. #7
    Valued Forum Contributor
    Join Date
    03-23-2008
    Location
    Tennessee
    MS-Off Ver
    Office 2007
    Posts
    706

    I see..

    Thanks for clearing that up Roy. Have a good one.

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320
    perhaps something like this.
    i hid the auto filter in last column
    used =m1 dragged down and filtered that.
    Attached Files Attached Files

  9. #9
    Forum Contributor
    Join Date
    08-10-2006
    Posts
    723
    sorry for the late reply
    that works great
    thanks again
    steve

+ 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