+ Reply to Thread
Results 1 to 4 of 4

Validation Not Consistent

  1. #1
    Registered User
    Join Date
    01-16-2011
    Location
    Chile
    MS-Off Ver
    2010
    Posts
    3

    Validation Not Consistent

    Hi everybody

    I have a code that makes a comma separated list from a collection, and then makes a cell validation with that list.

    The purpose of this code is to detect the last cell in a column, and make the next one a drop down list with unique values from the column above. get it? Its to allow the selection of the 'next value' from an intelligent list, that remembers it if it didn't exist and you had to enter it.

    The code makes use of a modification of a tip by J.G. Hussey, published in "Visual Basic Programmer's Journal".

    Please Login or Register  to view this content.
    That is the troublesome part of the code.

    The problem is that when I run this code from the Visual Basic Editor (pressing play) the functions function perfectly, and the validation returns a working list.

    But when I start the code from Excel (Run Macro, or adding a Button that runs it), the validation doesn't work, and leaves a drop-down list with a unique raw value like "value1;value2;value3" and it doesn't validate it.

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Validation Not Consistent

    You could try to change semicolon with comma.
    Where in you code there is ";" change it with ",".

    Regards,
    Antonio

  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: Validation Not Consistent

    Why do you need this? Right click the cell & choose Pick from drop down List
    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
    01-16-2011
    Location
    Chile
    MS-Off Ver
    2010
    Posts
    3

    Re: Validation Not Consistent

    Thank you both for your answers.

    @royUK the purpose is to have an intelligent drop down, that picks unique values from the column that holds the validated cell, and shows them in a list. It's not for me its for an asset management firm...

    @antoka05 I think that did it... However, I for some reason had allready changed from ; to , and I can't remember why (...) I guess it's wait and see. Thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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