Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 90301

How to copy/duplicate an UserForm

$
0
0

The problem is I've already created an UserForm and now I need another one with the same design and code.

I tried to perfom the usual copy/paste with the UserForm selected but It doesn't work. In fact, the option copy/paste appears disabled in the edition group in VBA Editor.

enter image description here

I've already tried to export the UserForm and change the name at the time to save it and import it again in my proyect but It retuns me a name matching error.

As I show in the following image I exported the UserForm with another name from the original UserForm which name is UserForm1, instead I saved this one as UserForm2.

enter image description here

This action returns me an error about the name 'UserForm1' is already used.

enter image description here

I need to duplicate this UserForm in my proyect changing the name


Viewing all articles
Browse latest Browse all 90301

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>