+ Reply to Thread
Results 1 to 7 of 7

Data Validation for all TextBoxes and Comboboxes in Userform

  1. #1
    Registered User
    Join Date
    06-25-2009
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    76

    Data Validation for all TextBoxes and Comboboxes in Userform

    I have a userform with TextBoxes and Comboboxes. I am supposed to perform a data validation to check presence of comma (,) in any of the fields. I have written the following loop but I am not able to figure out how to check the data for presence of comma.
    Need help.

    Please Login or Register  to view this content.
    Last edited by singhabhijitkumar; 08-10-2010 at 03:09 AM.

  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
    48,978

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    Perhaps:

    Please Login or Register  to view this content.

    Regards

  3. #3
    Registered User
    Join Date
    06-25-2009
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    sorry not getting cCont.Value

  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
    48,978

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    Sorry

    Please Login or Register  to view this content.

    should have been

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    06-25-2009
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    sorry friend not getting cCont.Value. did u try it yourself

  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
    48,978

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    No I don't have any textboxes to play with.

    Subtitute should probably be "Application.WorksheetFunction.Substitute"

    Post a sample workbook and I'll try it out.

    Regards

  7. #7
    Forum Contributor
    Join Date
    08-21-2008
    Location
    Hamilton, New Zealand
    MS-Off Ver
    Office 2007
    Posts
    255

    Re: Data Validation for all TextBoxes and Comboboxes in Userform

    or ....

    Please Login or Register  to view this content.

+ 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