Copy and Paste Several checkboxes and code

jeffmoseler

Well-known Member
Joined
Jul 16, 2004
Messages
540
I have a bunch of check boxes in a sheet that, when checked, add a date to a particular cell. I then created a new Sheet and copied the entire sheet into a new one. I need to copy the checkboxes over as well and have them add the date to the same cell in the new Sheet. Is this possible?
 

Excel Facts

Can you AutoAverage in Excel?
There is a drop-down next to the AutoSum symbol. Open the drop-down to choose AVERAGE, COUNT, MAX, or MIN
Hi,

Instead of adding a new worksheet and then copying + pasting, you can use the worksheets copy method to directly create a copy of the worksheet, eg:

Code:
'we want to copy "Sheet2" 
Worksheets("Sheet2").Copy after:=Worksheets(Worksheets.Count)

Not sure what you mean by adding dates, but the functionality of the checkboxes will be identical to that of the original sheet.


If you aren't doing this with VBA, this is the same functionality as right-clicking on the worksheet's tab, choosing Move or Copy..., and then ticking the "create a copy" checkbox.

Hope that helps...
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,850
Members
449,051
Latest member
excelquestion515

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