Results 1 to 16 of 16

[VBA] Hiding columns when a certain Value is displayed.

Threaded View

  1. #1
    Registered User
    Join Date
    10-25-2016
    Location
    Portugal
    MS-Off Ver
    2016
    Posts
    13

    [VBA] Hiding columns when a certain Value is displayed.

    I have a problem, and I have absolutely no idea how to fix it.

    Let's say, we have a full column with dropdowns. In each dropdown, there's a certain type of data, I'm going to use cars for an example.
    We also have a full line with specifications.

    Now, imagine we go to A1, which is the dropdown column, and we pick Ford (car brand). When I pick Ford, I want excel to hide all the columns EXCEPT the columns with the specification data about Ford.
    Let's say Ford is associated with lines such as Engine, Consumption and Torque, but there's lots and lots of other lines like, Electrical Consumption etc.
    When I pick Ford in the Dropdown, I want excel to hide everything and only display the columns that say "Engine, Consumption and Torque" in a way I can fill them up.
    Now, let's imagine that in the dropdown below, I pick Electric Car Brand. I want Excel to hide all the other columns, and display "Electrical Consumption, *Specification 1* and *Specification 2*

    How am I able to achieve this? The closest thing I've saw are macros, but my level of knowledge on excel is still quite low and I'm not understanding how to get them working. I would love if someone could help me out with this.
    Last edited by Palmajr; 10-26-2016 at 06:26 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Automate hiding columns, adding columns, inserting formulas, and filtering
    By hpatel517 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-27-2016, 11:17 AM
  2. [SOLVED] Hiding and un hiding columns using VBA code
    By Jes1397 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2015, 12:52 AM
  3. Hiding columns in excel without hiding form button
    By rename in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-01-2013, 01:38 AM
  4. Replies: 9
    Last Post: 09-19-2012, 05:31 AM
  5. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 10-30-2011, 09:24 AM
  6. Un-Hiding and Hiding Columns based on Drop-Down Values in a Column.
    By e4excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-11-2011, 06:49 AM
  7. Replies: 2
    Last Post: 10-18-2005, 10:05 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