+ Reply to Thread
Results 1 to 6 of 6

Help please with validation drop-down

  1. #1
    Registered User
    Join Date
    08-10-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    3

    Help please with validation drop-down

    I have a drop-down with the following items:

    New
    Uniform
    Uni. Instr.
    Instructor
    Assist.
    Old

    The following partial code works for all selections except "Uni. Instr." ie If line 10 is If CelChosen = "Uni. Instr." then. Please tell me where I'm going wrong, (relative newbie to macros)
    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Help please with validation drop-down

    Make sure the Target cell value is exactly "Uni. Instr."
    The caps have to be the same and there is no trailing space character in the dropdown.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    08-10-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    3

    Re: Help please with validation drop-down

    All checked and correct but not working, I'm tearing my hair out.

  4. #4
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Help please with validation drop-down

    Attach a sample workbook. Make sure there is just enough data to demonstrate your need.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    Registered User
    Join Date
    08-10-2017
    Location
    UK
    MS-Off Ver
    2013
    Posts
    3

    Re: Help please with validation drop-down

    @AlphaFrog
    Thanks for your input. It's now working. Your confirmation tha it should work made me dig a bit deeper. A previous And/Or line of code (although it appeared to work) was incorrectly constructed causing the sub to exit when "Uni. Instr." was chosen from the dropdown. This is my first attempt at a rather complicated macro programming excercise and have spent hours searching the web finding out how to do things - it's all a (rather steep) learning curve.

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Help please with validation drop-down

    Glad you figured it out. Well done and thanks for the feedback.

+ 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. Data validation drop down with ghost drop down
    By KEDENNIS in forum Excel General
    Replies: 11
    Last Post: 04-04-2016, 03:49 PM
  2. Replies: 4
    Last Post: 10-28-2015, 12:59 PM
  3. Replies: 0
    Last Post: 05-27-2011, 12:01 PM
  4. validation with drop down
    By arnab0711 in forum Excel General
    Replies: 5
    Last Post: 06-05-2010, 03:09 AM
  5. Validation Drop Down Box
    By Barbara Ryan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2006, 05:40 AM
  6. [SOLVED] Validation Drop Down Box
    By Duncan, UK in forum Excel General
    Replies: 2
    Last Post: 03-24-2006, 08:00 AM
  7. validation help with drop down
    By lilralph in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-06-2006, 11:25 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