+ Reply to Thread
Results 1 to 4 of 4

VBA code for (un)hide columns related to drop down list doesn't work

  1. #1
    Registered User
    Join Date
    10-21-2010
    Location
    Lausanne
    MS-Off Ver
    Excel 2003
    Posts
    2

    Exclamation VBA code for (un)hide columns related to drop down list doesn't work

    Hello Everybody,

    I'm sure someone asked already but as I can't find the exact code specified to my worksheet I really would appreciate it if someone could help me with this urgent request.

    Column I is a dropdown list which contains the answers 'Yes' and 'No'.
    If someone chooses 'Yes' I want Colum J to unhide.
    The same goes for:
    Column X (Yes) = Y unhide
    Column AD (Yes) = AE unhide
    Column AH (Yes) = AI unhide
    Column AJ (Yes) = AK unhide
    Column AL (Yes) = AM & AN unhide
    Column AO (Yes) = AP unhide

    AND, another one. If the person enters to both columns U&V the number 0, the column AF needs to be unhided. Same goes for entering the number 0 to column S, column AG needs to be unhided.


    Can you please help? I tried many times but was unsuccessful.
    Thank you!
    Last edited by maumon; 10-21-2010 at 08:22 AM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,481

    re: drop-down list related to (un)hide colums

    Please Post a sample workbook with your dropdowns

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    re: drop-down list related to (un)hide colums

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    EDITED THIS TIME
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    10-21-2010
    Location
    Lausanne
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: VBA code for (un)hide columns related to drop down list doesn't work

    Hello Dave,

    there you go. It's not a sample but the actual file.
    Worksheet Hospital.
    Thank you.
    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)

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