+ Reply to Thread
Results 1 to 2 of 2

Automaticly hide columns if certain cell has value no

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    Amsterdam
    MS-Off Ver
    Excel 2010
    Posts
    2

    Automaticly hide columns if certain cell has value no

    Cost Tracker.xlsmHi all,

    I am new to this forum because normally i can find the answers to all my excel questions without having to post the thread myself, however i am stuck here.

    I am making an excel sheet for work and i have made 2 worksheets, 1 containing the lists that i would like to have in my dropdown menus, and a worksheet in where i have implemented these drowdown menus.

    The sheet i am making contains a large amount of colums that a lot of times do not need to be filled out.
    I have created a drowdown menu in a cell in my worksheet, based on the information in the list worksheet via data validation, list, source=REVLIST.
    In order to allow my coworkers to add information to this dropdown list the following code is added to my worksheet:



    Please Login or Register  to view this content.


    End Sub
    End If
    End If





    [/SIZE]

    And the following code has been entered in the list


    Please Login or Register  to view this content.
    Now in my worksheet i would like to add a code that hides colums AO:AQ if cell AN2 = no (the no being selected from the dropdown menu)
    Can anybody please help me with the code for this and how to implement it in the current change code that is already in place?

    Thanks in advance.

    Regards,

    Robin
    Last edited by RobinTielens; 09-09-2014 at 04:28 AM.

  2. #2
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Automaticly hide columns if certain cell has value no

    Hi, RobinTielens,

    consider to attach a sample workbook.

    Please take some time and have a read at Forum Rule #3 and add code-tags to your procedures as requested there.

    Ciao,
    Holger
    Use Code-Tags for showing your code: [code] Your Code here [/code]
    Please mark your question Solved if there has been offered a solution that works fine for you

+ 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. how to import a worksheet and automaticly have some columns moved
    By christop in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-27-2013, 08:03 AM
  2. Replies: 6
    Last Post: 11-14-2007, 11:55 AM
  3. [SOLVED] How to select automaticly the last cell not empty of a area?
    By Bigmas in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-12-2006, 09:55 AM
  4. Can rows/columns Automaticly Grow/Shrink?
    By Brw in forum Excel General
    Replies: 0
    Last Post: 03-24-2006, 10:35 AM
  5. How to automaticly copy a cell every minute
    By nguyen in forum Excel General
    Replies: 5
    Last Post: 03-07-2005, 04:56 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