+ Reply to Thread
Results 1 to 7 of 7

User Form Won't Load

  1. #1
    Registered User
    Join Date
    08-10-2007
    Posts
    13

    User Form Won't Load

    So I have a form called WeddingSpecialForm and a sub routine that consists entirely of the line WeddingspecialForm.Show but when I run the sub routine, I get a type error. Does anyone have any hypotheses why?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    I think a skosh more information, some code, an example, would help.

  3. #3
    Registered User
    Join Date
    08-10-2007
    Posts
    13
    It's on another machine that I'm keeping as an isolated system, but there's a fair amount of code for the form. What areas would you recommend looking in?

  4. #4
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200
    What do you mean by sub routine/ Is this Procedure in a separate module to thw UserForm code?
    Hope that helps.

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

    Free DataBaseForm example

  5. #5
    Registered User
    Join Date
    08-10-2007
    Posts
    13
    In Module 1 I have

    Sub SolicitWedding()
    WeddingSpecialForm.Show
    End Sub

    Under forms I have a form called WeddingSpecialForm

    Are you saying I should but the sub in the code for the form?

  6. #6
    Forum Moderator Leith Ross's Avatar
    Join Date
    01-15-2005
    Location
    San Francisco, Ca
    MS-Off Ver
    2000, 2003, & 2010
    Posts
    23,258
    Hello Suburbanght,

    You're correct in that the code to call the UserForm should be in Module 1. I would check your code for a typo. Misspelling an object name or reference can this problem.

    Sincerely,
    Leith Ross

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    Misspelling an object name or reference can this problem.
    Which would be much easier to find and correct if you use
    Please Login or Register  to view this content.
    at the top of each module.

+ 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