Results 1 to 8 of 8

Exit sub from user form problem...

Threaded View

  1. #1
    Forum Contributor
    Join Date
    04-27-2006
    Location
    Cayman Islands
    Posts
    379

    Exit sub from user form problem...

    Good morning all, I am having a small issue where I get a runtime error '91' when the Exit Sub command is used from a user form, this is what happens.

    1. I run the macro which assigns some variables then shows UserForm1

    2. On UserForm1 initialising and through use of a command button I sort though all of my data assigning tasks to each piece of data, this all works fine, however when there is no data left this piece of code executes:

     If BOQID < 1 Then
            MsgBox "No data exists..."
            Unload Me
            Exit Sub
    End If
    Everything works fine until this point but when it hit's Exit Sub I have a problem. Any ideas what's going wrong?
    Last edited by ChrisMattock; 12-10-2008 at 10:52 AM.

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