+ Reply to Thread
Results 1 to 5 of 5

UserForm exiting prior to completion

  1. #1
    Registered User
    Join Date
    06-12-2008
    Posts
    19

    UserForm exiting prior to completion

    The userform I created exits when you press the "ok" button even all the fields are not complete. I know that this is because of where I placed the "unload userform1" command, but I cannot think of how to fix it. I want the first 5 text boxes I have to be mandatory and required to be filled in while the last 2 do not need to be filled in. I will attach the sheet.

    Also,

    I would like to get rid of the "enable macros" prompt without deleting the modules. How can I do this?
    Attached Files Attached Files

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I put code in earlier for you to check if all textboxes were complete
    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 Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    I have amended the earlier code, it checks the textbox's name 7 if it ends in a number below 6 it wont continue
    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    06-12-2008
    Posts
    19
    It works fine now. I don't know what went wrong before. Thanks for the help again. However, I do need help getting rid of the enable macros prompt without deleting the modules.
    Last edited by Ford_Guy; 06-13-2008 at 02:14 PM.

  5. #5
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    Quote Originally Posted by Ford_Guy
    It works fine now. I don't know what went wrong before. Thanks for the help again. However, I do need help getting rid of the enable macros prompt without deleting the modules.
    You can't. The UserForm will trigger that on opening. It is a security issue to help prevent malicious code and although there are ways we don't offer solutions to that.

+ 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