+ Reply to Thread
Results 1 to 4 of 4

Code for copying forms from one project to another

  1. #1
    Registered User
    Join Date
    01-17-2011
    Location
    calgary, alberta
    MS-Off Ver
    Excel 2003
    Posts
    61

    Code for copying forms from one project to another

    Hi there,

    Can anyone help me with the code reqired to copy a user form from one project to another? I suspect I would need to export it to a temp. file and then import that file in my new project.

    Thank you!

  2. #2
    Valued Forum Contributor mohd9876's Avatar
    Join Date
    05-04-2011
    Location
    Amman, Jordan
    MS-Off Ver
    Excel 2010
    Posts
    426

    Re: Code for copying forms from one project to another

    you can use this code to export the file:

    Please Login or Register  to view this content.
    and this code to import it in another project:

    Please Login or Register  to view this content.
    I hope that is what you were looking for,

    Mohammad

  3. #3
    Registered User
    Join Date
    01-17-2011
    Location
    calgary, alberta
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Code for copying forms from one project to another

    That is exactly what I was looking for, however, it doesn't work. That is the code I am using, but for some reason, it's not importing the userforms into the new project. Any suggestions? Based on the code above, where would I go to look for the temp file to see if it's even being exported properly?

    Thank you.

  4. #4
    Registered User
    Join Date
    01-17-2011
    Location
    calgary, alberta
    MS-Off Ver
    Excel 2003
    Posts
    61

    Re: Code for copying forms from one project to another

    figured it out. it's a security setting. you have select trust access from projects for the project to copy the forms and modules.

+ 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