Copy Sheet with userform buttons to another sheet in same workbook

sidt87

New Member
Joined
Mar 1, 2017
Messages
16
Hi,

I've created a worksheet that has userform buttons on sheet1 and I would like to copy it to sheet2. How can I copy it so that the buttons would work for sheet2? The reason is I need to separate shift entries.

thanks!
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
Click the upper left corner of the worksheet you want to copy. The small square with the triangle pointing right & down.
This selects the entire sheet.

Right click anywhere on the worksheet and select copy.

Move to the sheet you want to paste to.

Right click in cell A1 / select PASTE.


Now ... if both sheets are exactly alike in the data layout and use of cells, any macro used by the button on the first sheet, should work on the second sheet,
so long as the macro used relative references. In other words, if the macro has any code that says "Sheets("Sheet1") and you are trying to use the same
button/macro on Sheet 2 ... it won't work.

You will need to create new macros to work with the second sheet UNLESS, the code is written otherwise.
 
Upvote 0

Forum statistics

Threads
1,223,240
Messages
6,170,951
Members
452,368
Latest member
jayp2104

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