+ Reply to Thread
Results 1 to 5 of 5

UserForm

  1. #1
    Forum Contributor
    Join Date
    01-15-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    2007, 2010, 2016
    Posts
    275

    UserForm

    Hi guys,

    Have a small problem.

    I have a userform that requires 2 fields to be filled into textboxes, one text and one numeric.
    I do a test to see if the correct is applied. Have a msgbox that pops up saying incorrect one filled in but as soon as I click ok on the popup msgbox, the userform closes.

    I just want the focus to move back to the userform so the user can fill in the correct value in the correct textbox.

    Please help...

    Thanks in advance
    Jacques


  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: UserForm

    You need to post the code. You must have something like Exit Sub in the message box code
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Forum Contributor
    Join Date
    01-15-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    2007, 2010, 2016
    Posts
    275

    Re: UserForm

    Please Login or Register  to view this content.

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: UserForm

    I can't see why the form should close unless there is something in btnvSolve_Reset_Click.

    I can't see why you use worksheet functions to check for numbers

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    01-15-2010
    Location
    Jhb, South Africa
    MS-Off Ver
    2007, 2010, 2016
    Posts
    275

    Re: UserForm

    Hi Roy,

    Sorry for the late reply, have been occupied a bit.
    I'll give this a try thanks.

+ 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