+ Reply to Thread
Results 1 to 3 of 3

Validation Msg Box Issue

  1. #1
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Validation Msg Box Issue

    Hi

    I have a userform which has validated text box's, when trying to input invalid data a msg box appears.

    Issue that i am having is that when i click my update command button and data is exported to my sheet it displays the all of the msg box messages for each text box. I presume that this is caused by the text box's being cleared after they have been copied to my excel sheet but I dont know how to fix it.

    This is my Update command code

    Please Login or Register  to view this content.
    This is the code i use to validate my textboxs

    Please Login or Register  to view this content.
    Have attached the spreadsheet as well

    Please can you help?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    11-20-2012
    Location
    Seattle, WA USA
    MS-Off Ver
    Excel 2010
    Posts
    597

    Re: Validation Msg Box Issue

    http://www.fontstuff.com/ebooks/free/fsUserForms.pdf

    take a look at this, i would suggest not using the private sub, but rather have the validation as part of the command button click macro

  3. #3
    Registered User
    Join Date
    05-01-2013
    Location
    Cov, England
    MS-Off Ver
    Excel 2003
    Posts
    60

    Re: Validation Msg Box Issue

    Thank you so much, all working now and better than what i wanted

+ 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