+ Reply to Thread
Results 1 to 2 of 2

Thread: Auto-open userform with document

  1. #1
    Registered User
    Join Date
    05-08-2009
    Location
    england
    MS-Off Ver
    Excel 2007
    Posts
    45

    Auto-open userform with document

    Why wont the userform in the attached document template open automatically when the file is opened?

    If you specifically open the template it will.....but if you open as a new file from the template it wont???

    I also can't get the userform data to paste to the document when the submit button is pressed.

    I've had these working before in different documents but cannot figure out why they wont work now.

    Any ideas anyone?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    2010
    Posts
    952

    Re: Auto-open userform with document

    In ThisDocument add:
    Private Sub Document_New()
        UserForm1.Show
    End Sub

+ 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.2.0