Closed Thread
Results 1 to 2 of 2

Copying a Userform within the same project

  1. #1
    needyourhelp
    Guest

    Copying a Userform within the same project

    Hi,

    I'm a VBA dabbler...

    I want to make a copy of a userform and keep it in the same project.

    I need a duplicate form with only minor variations and would like to keep
    the same look-n-feel without redesign and recode, etc...

    I can't figure out how to do it in VBA editor (in excel). There is no
    "copy" option under the right click, and the editor will not let me drag and
    drop it in anywhere.

    I've seen techniques for creating copy in a different project on different
    worksheet, but none for jsut making a simply copy in the same place.

    Maybe I'm confused about projects. I have about 20 macro/procedures. I put
    each in a unqiue module as many are fairly complex (for me anyway) with
    descriptive names so that everything was clean and made some sense and
    logical code functions could be easily found and debugged.

    So I think I have one project for my workbook. Why would I want more ?


    thanks,

    tim

  2. #2
    Vasant Nanavati
    Guest

    Re: Copying a Userform within the same project

    This may not be the most elegant solution, but open a blank workbook, drag
    the UserForm to the new project, rename it, and drag it back.

    --

    Vasant


    "needyourhelp" <[email protected]> wrote in message
    news:[email protected]...
    > Hi,
    >
    > I'm a VBA dabbler...
    >
    > I want to make a copy of a userform and keep it in the same project.
    >
    > I need a duplicate form with only minor variations and would like to keep
    > the same look-n-feel without redesign and recode, etc...
    >
    > I can't figure out how to do it in VBA editor (in excel). There is no
    > "copy" option under the right click, and the editor will not let me drag
    > and
    > drop it in anywhere.
    >
    > I've seen techniques for creating copy in a different project on different
    > worksheet, but none for jsut making a simply copy in the same place.
    >
    > Maybe I'm confused about projects. I have about 20 macro/procedures. I
    > put
    > each in a unqiue module as many are fairly complex (for me anyway) with
    > descriptive names so that everything was clean and made some sense and
    > logical code functions could be easily found and debugged.
    >
    > So I think I have one project for my workbook. Why would I want more ?
    >
    >
    > thanks,
    >
    > tim




Closed 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