+ Reply to Thread
Results 1 to 7 of 7

VBA urgent save! 'Select a column' and hide the others

  1. #1
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    VBA urgent save! 'Select a column' and hide the others

    Hi guys,

    I've got an urgent scenario of template to produce, and I've got the source codes from a gentleman on the forum, however I just cannot make it work when I paste it to an adjusted template.

    Can anyone help please?

    I'm trying to achieve something like
    There is a cell for selection of value
    When I select level 1, only column with level 1 remains, and the other four levels gets hidden
    I have a template with codes that work, but when I apply that to the destination template, it just won't work..

    Your input is great appreciated!

  2. #2
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA urgent save! 'Select a column' and hide the others

    For Final Design

    Please Login or Register  to view this content.
    Kind regards
    Leo

  3. #3
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: VBA urgent save! 'Select a column' and hide the others

    Quote Originally Posted by LeoTaxi View Post
    For Final Design

    Please Login or Register  to view this content.
    Kind regards
    Leo
    Hi Leo,

    Thanks so much for your codes mate.

    It works very well with a clean spreadsheet, but when I paste them into my destination spreadsheet, which is exactly the same, it just wouldn't work. I guess something is corrupt with my old version.

    Additionally, if I want to hide a certain column (a calculation column) regardless of whichever level I choose, is this doable?

    Now when I select a new level, all hidden columns would reappear..

    Thanks
    Frankximus

  4. #4
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA urgent save! 'Select a column' and hide the others

    Maybe the colomn headers are not in row 17 in other sheet ?


    Kind regards
    Leo

  5. #5
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: VBA urgent save! 'Select a column' and hide the others

    Quote Originally Posted by LeoTaxi View Post
    Maybe the colomn headers are not in row 17 in other sheet ?


    Kind regards
    Leo
    Hey Leo,

    Yeah they are in row 17. That's where got me confused, since I spent a while testing them. But the problem is solved when I started a new document with your coding.

    I'm curious, if I want to hide certain columns, say the ones used to do vlookup or calculation (Column Y,W,Z), how do I hide them when one of the levels is selected?

    Currently, if I select any level, all hidden columns are revealed...

  6. #6
    Forum Expert
    Join Date
    08-16-2015
    Location
    Antwerpen, Belgium
    MS-Off Ver
    2007-2016
    Posts
    2,380

    Re: VBA urgent save! 'Select a column' and hide the others

    Like this

    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-11-2016
    Location
    Melbourne
    MS-Off Ver
    2013
    Posts
    18

    Re: VBA urgent save! 'Select a column' and hide the others

    Quote Originally Posted by LeoTaxi View Post
    Like this

    Please Login or Register  to view this content.
    You are a star Leo.

    Thanks so much!

+ 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. [SOLVED] VBA column hide/ show leads to RESET Charts after save, close and Reopen WB
    By meus in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-22-2015, 02:38 AM
  2. [SOLVED] How to hide a column after select a other specific column?
    By bluesurger in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-27-2014, 11:44 AM
  3. Can't hide hidden column when save as webpage
    By Doraemon in forum Excel General
    Replies: 2
    Last Post: 08-16-2013, 12:07 PM
  4. Hide Column from select users
    By excel2me in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2012, 04:46 PM
  5. Select rows by same value in a column; then do "save as"
    By kwhayes in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-15-2011, 05:37 PM
  6. [SOLVED] URGENT!! Use macro button to hide empty columns and rows...HELP!!!!
    By Hawk in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-08-2005, 06:05 PM
  7. How to select Sheets!! HELP URGENT!!
    By greenfalcon in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-08-2005, 12:34 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