+ Reply to Thread
Results 1 to 4 of 4

Validate UserForm Data Against an Entry from the Worksheet

Hybrid View

  1. #1
    Registered User
    Join Date
    09-23-2015
    Location
    US
    MS-Off Ver
    2010
    Posts
    2

    Validate UserForm Data Against an Entry from the Worksheet

    I have a UserForm that I use to input a soccer league’s schedule. I have both textboxes and optional buttons to input data such as the date, location, field number, home or away team, etc.

    I would like to add some VBA code to my UserFrom that would check my selection of a team on the UserForm against the team’s last entry in the worksheet to ensure the start time is greater than their last game’s ending time.

    Hopefully, this picture below will bring a little clarity to what I’m attempting to do. I’ve also attached the workbook.

    Any assistance with the code is greatly appreciated.

    SoccerSchedule.jpg
    Attached Files Attached Files

  2. #2
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Validate UserForm Data Against an Entry from the Worksheet

    Test this out.
    Your code was sending the start and end times to your worksheet as text.
    I fixed that issue.
    Attached Files Attached Files
    Last edited by skywriter; 09-23-2015 at 03:48 AM.
    Click the * Add Reputation button in the lower left hand corner of this post to say thanks.

    Don't forget to mark this thread SOLVED by going to the "Thread Tools" drop down list above your first post and choosing solved.

  3. #3
    Registered User
    Join Date
    09-23-2015
    Location
    US
    MS-Off Ver
    2010
    Posts
    2

    Re: Validate UserForm Data Against an Entry from the Worksheet

    skywriter,

    Thank you for the help. It works perfectly!!

  4. #4
    Forum Expert skywriter's Avatar
    Join Date
    06-09-2014
    Location
    USA
    MS-Off Ver
    2016
    Posts
    2,760

    Re: Validate UserForm Data Against an Entry from the Worksheet

    Thanks for the rep. points.

+ 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. [SOLVED] Userform combobox to decide which worksheet for data entry
    By cklee in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-07-2015, 05:00 PM
  2. If Textbox in UserForm contains a specific entry then display data from a worksheet
    By tigerdel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-05-2014, 08:45 AM
  3. Validate that entry in one cell matches an entry in another range of cells
    By Grilleman in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-01-2014, 03:57 PM
  4. Help with userform data entry to a different worksheet.
    By codebreaker in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2014, 06:52 PM
  5. [SOLVED] Validate in WS to prevent dual data entry
    By Jonah in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-10-2006, 01:25 AM
  6. Validate MsgBox Entry to Data in Cells
    By David in forum Excel General
    Replies: 14
    Last Post: 12-21-2005, 06:35 PM
  7. Validate data in userform data entry
    By BernzG in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-01-2005, 09:05 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