+ Reply to Thread
Results 1 to 6 of 6

hide/unhide columns based on dropdown list.

Hybrid View

  1. #1
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: hide/unhide columns based on dropdown list.

    The macro you need is sheet specific and runs whenever you change the sheet,

    The macro checks to see if the cell that was changed was in column D.

    If so the macro then reads the cell and modifies your spreadsheet.

    If you had included a sample I'd know how to help you further.

    How did you create a drop down list in the whole of column D.

    why not on the top row and freeze the window?
    Last edited by mehmetcik; 10-18-2013 at 03:47 PM.

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: hide/unhide columns based on dropdown list.

    I have created something to get you started.

    change col d and columns get hidden
    change column d again and columns get un hidden.

    right click on the sheet name and select view code to see the macro.
    Attached Files Attached Files

+ 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. Automatically Hide/Unhide Columns Based Dropdown List
    By Kapil.gour in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-27-2012, 07:39 AM
  2. Hide/unhide columns based on the drop down list value
    By vagif in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-16-2012, 02:13 AM
  3. Hide/Unhide rows Based on Value from Dropdown Lists
    By 2Deep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-12-2010, 09:43 PM
  4. Hide & Unhide columns based on a cell value
    By DaveNUFC in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 02-21-2010, 09:40 AM
  5. Unhide/Hide column when choosing dropdown list
    By yuzi in forum Excel General
    Replies: 4
    Last Post: 10-06-2009, 12:44 PM

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