Results 1 to 6 of 6

Calling a sub from a different userform

Threaded View

  1. #1
    Registered User
    Join Date
    11-22-2012
    Location
    United States
    MS-Off Ver
    Office 2013
    Posts
    25

    Calling a sub from a different userform

    Hi All,

    I'm having trouble with a userform calling subs.

    In Userform1:

    Private sub CommandSubmit_Click()
    SubmitForm.Show
    End Sub
    This shows userform2 which lets the user confirm submission or cancel to go back. When the submit button is clicked:

    Private Sub CommandSubmit_Click()
    Call SubmitDataTrue_Change
    End Sub
    This calls a sub from the code of userform1, but if I test and click submit, I get an error "compile error sub or function not defined"

    I hope this is enough info. Thanks for the help in advance!
    Last edited by domnisignis18; 07-04-2013 at 09:25 AM.

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