+ Reply to Thread
Results 1 to 3 of 3

how to hide columns that have specific text in a row

  1. #1
    Registered User
    Join Date
    09-18-2014
    Location
    Los Angeles, CA
    MS-Off Ver
    2013
    Posts
    33

    how to hide columns that have specific text in a row

    I'm trying to make a vba to hide all the columns that have "x" in row 2.


    For example, I want this

    Apples............Oranges...........Grapefruits.......
    Jan...Feb...Mar...Apr...May...Jun..."x"..."x"..."x"...
    74....12....837...74....12....837...74....12....837...
    31....14....436...31....14....436...31....14....436...
    21....35....2376..21....35....2376..21....35....2376..
    53....3465..745...53....3465..745...53....3465..745...
    12....324...456...12....324...456...12....324...456...
    512...25....275...512...25....275...512...25....275...
    432...234...456...432...234...456...432...234...456...


    To look like this (but hidden, not deleted)

    Apples............Oranges...........
    Jan...Feb...Mar...Apr...May...Jun...
    74....12....837...74....12....837...
    31....14....436...31....14....436...
    21....35....2376..21....35....2376..
    53....3465..745...53....3465..745...
    12....324...456...12....324...456...
    512...25....275...512...25....275...
    432...234...456...432...234...456...

  2. #2
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,565

    Re: how to hide columns that have specific text in a row

    Hi pluqk:

    Try this:

    Please Login or Register  to view this content.
    Regards,

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  3. #3
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: how to hide columns that have specific text in a row

    Or alternatively,
    Please Login or Register  to view this content.
    Kind regards,
    berlan
    Last edited by berlan; 09-25-2014 at 07:52 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. hide columns if a cell has a specific word
    By tlacloche in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-17-2014, 08:06 PM
  2. [SOLVED] Hide columns based on specific cell value
    By samcdavies in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-14-2013, 05:53 AM
  3. Hide/Unhide Columns Depending on a specific cell value
    By DaveM13 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-19-2012, 06:01 PM
  4. Hide specific columns dependant on number in specific cell
    By ladbroke in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-13-2012, 04:46 PM
  5. Hide columns with 0 in a specific cell
    By Poldark in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-18-2012, 05:27 AM

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