Copying cells from one worksheet to another.

kiwi4444

New Member
Joined
Aug 20, 2016
Messages
18
As you can see in the attachment there are two worksheets in the lower left corner. Worksheet and worksheet2; I'm trying to copying all the cells in the tab "worksheet" and copy them to "worksheet2".

How would I do that?

Thanks.


https://ibb.co/ibQPQq
 
What is your ultimate goal here? What I'm trying to do is have 12 tabs; then have the contends of the 1st tab copied to each of the other 11 pages.

Are you wanting to make like 10 copies of the same Worksheet?
When you say multiple do you mean multiple copies of the same Worksheet. The script I provide which you never replied to will make a copy to the Worksheet and give it a new name.

Why would that not work?

We could write a script to Make 10 copies of worksheet named Me and give all the copies new names.

And doing it my way would also include all Buttons and other controls in the sheet. Not just the cell values.

Basically if it's not too much to ask for I would need ascript that can take the contends of the 1st tab (worksheet) and copy the contains in the 1st tab(worksheet) to each of the other 11 tabs(worksheets).
 
Upvote 0

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
.. I would need ascript that can take the contends of the 1st tab (worksheet) and copy the contains in the 1st tab(worksheet) to each of the other 11 tabs(worksheets).
Try this.
Code:
Sub Copy_Data_v2()
  Dim i As Long
  
  For i = 2 To 12
    With Worksheets(1).UsedRange
      .Copy Destination:=Worksheets(i).Range(.Cells(1).Address)
    End With
  Next i
End Sub
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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