+ Reply to Thread
Results 1 to 4 of 4

MessageBox verification restricts textbox entry.

  1. #1
    Registered User
    Join Date
    12-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    50

    MessageBox verification restricts textbox entry.

    Hello,

    I've created a Message Box asking the user to enter two textbox fields before proceeding to add the rest of the data to a spreadsheet. The same ADD button will add the driver name "Dave" to respective cell in the spreadsheet. I don't know how to include in the cmdAdd procedure to prevent the Drivers name "Dave" from adding after the two mandatory fields - txtVendor and txtLocation - are filled. Similarly, values entered in txtFruit and txtVeggie are filled and entered in the respective cell even if the mandatory textboxes - txtVendor and txtLocation - are not filled.

    Can someone suggest a code?

    Sample userform is included.
    thanks in advance.
    Gal

    Sample 3 MsgBox.xlsm

  2. #2
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: MessageBox verification restricts textbox entry.

    Hi Gal03

    It may be as simple as this
    Please Login or Register  to view this content.
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  3. #3
    Registered User
    Join Date
    12-03-2013
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    50

    Re: MessageBox verification restricts textbox entry.

    John, Thank you!!

  4. #4
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: MessageBox verification restricts textbox entry.

    You're welcome...glad I could help. Thanks for the Rep.

+ 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. Set Max and Min limits on calculated textbox based on another textbox entry
    By kpinkerman in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-13-2013, 04:54 PM
  2. [SOLVED] VBA UserForm - Have entry in TextBox fill Another TextBox by VLOOKUP
    By msquared99 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-26-2012, 10:24 PM
  3. Replies: 2
    Last Post: 07-09-2012, 02:05 AM
  4. Replies: 4
    Last Post: 09-16-2011, 09:28 AM
  5. Using 3 Textbox's for Date entry
    By justchris in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-15-2005, 04:34 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