+ Reply to Thread
Results 1 to 6 of 6

Data Validation Combo Box - Indirect Function/Limit to one column

  1. #1
    Registered User
    Join Date
    11-27-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    7

    Data Validation Combo Box - Indirect Function/Limit to one column

    I have a worksheet that contains cascading drop down data validation lists using the Indirect function. I have the following code that creates a data validation combo box allowing the cells to autopopulate as the user types. However, I am having trouble in the cells where the data validation is using the indirect function. I have searched the forums and I am not sure this is possible using VBA. Ideally I would like to have that functionality, but if it is not possible I need help restriction the code to just one column (say column B) so that the other data validation cells can operate without the combo box feature.

    Please Login or Register  to view this content.
    Thank you so much for your help!

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: Data Validation Combo Box - Indirect Function/Limit to one column

    Please Login or Register  to view this content.


    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    11-27-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Data Validation Combo Box - Indirect Function/Limit to one column

    Where should I place your code suggestion in the code I already have?

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: Data Validation Combo Box - Indirect Function/Limit to one column

    As it is intended to limit the Selection Change event to one range/column, I would suggest that it goes at the beginning.

    In other words, your code would go where the MsgBox is in the example.


    Regards, TMS

  5. #5
    Registered User
    Join Date
    11-27-2012
    Location
    Los Angeles
    MS-Off Ver
    Excel 2007
    Posts
    7

    Re: Data Validation Combo Box - Indirect Function/Limit to one column

    The template file I created containing this code is not Mac compatible. I believe this is because the combo box contains Activex controls. Do you know if it is possible to modify the above code so that it does not use Activex, but still retains all of the functionality. Thank you so much for your help!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,995

    Re: Data Validation Combo Box - Indirect Function/Limit to one column

    You just got round to testing it?

    I'm sorry, I don't know anything about Macs. I would suggest you open a new thread about alternatives to ActiveX Controls on a Mac.

    Regards, TMS

+ 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