Move UserForm into new Book

Nalani

Well-known Member
Joined
Apr 10, 2009
Messages
1,047
I have a Workbook with about a dozen different sheets. I need to make a copy of just One of those sheets into a new Workbook and attach it to an email for distribution. >> No problem there.

My problem is, on this sheet, (while still in the original WB), I have a UserForm which is activated by buttons. When I copy this Sheet to the New Book the associated Codes and UserForm doesn't copy over.

Currently my Buttons are from the Forms toolbox. I know that I can change it to an ActiveX button and the code will follow.

Is there a way to import the UserForm from the original Book to the newly created Workbook that only has this sheet?

What I was hoping to do is have another Sub that would do this task automatically instead of, once the new book is created, copy over the UserForm manually.

I'm thinking that this Question has been asked in the past, but I can't find a solution with Search(s).
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.

Forum statistics

Threads
1,224,616
Messages
6,179,911
Members
452,949
Latest member
beartooth91

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top