+ Reply to Thread
Results 1 to 4 of 4

VBA. Hide columns based on values in namd range.

  1. #1
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    VBA. Hide columns based on values in namd range.

    Hi
    What would be the most efficient code to hide quite few columns based on values in certain named range.

    E.g. below is values in column B:

    Please Login or Register  to view this content.
    I have a dynamic named range called values_column_hide that at the moment covers Sheets("column_hide_settings").Range("B2:B30").
    Right, any ideas?

    Any help is always greatly appreciated.


    EDIT. Just to let you know I would switch to the relevant sheet before running the code.
    Cheers
    Last edited by rain4u; 03-19-2012 at 09:15 PM.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: VBA. Hide columns based on values in namd range.

    Try

    Please Login or Register  to view this content.
    Martin

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: VBA. Hide columns based on values in namd range.

    Even easier on reflection

    Please Login or Register  to view this content.

  4. #4
    Forum Contributor
    Join Date
    01-29-2011
    Location
    Bristol, England
    MS-Off Ver
    Excel 2003
    Posts
    471

    Re: VBA. Hide columns based on values in namd range.

    Works perfectly. Thank you.

+ 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