I have a basic sheet and want to copy cell data from one worksheet to another using a button created in VBA.
Sheets("SourceSheet").Range("A1").Copy Destination:=Sheets("TargetSheet").Range("D5")
Sheets("SourceSheet").Range("A3").Copy Destination:=Sheets("TargetSheet").Range("D6")
Sheets("SourceSheet").Range("C2:C6").Copy Destination:=Sheets("TargetSheet").Range("B7:B11")
Sheets("SourceSheet").Range("B2:B6").Copy Destination:=Sheets("TargetSheet").Range("A7:A11")
Sheets("SourceSheet").Range("C1").Copy Destination:=Sheets("TargetSheet").Range("B6")
Sheets("SourceSheet").Range("E5").Copy Destination:=Sheets("TargetSheet").Range("E5")
This 7 rows of data then will be repeated and want to be able to copy & paste these 7 rows and the button, so that when that button is pressed it then copies the data from the Source to the Destination for the next 7 rows of data.
So the first 7 rows will be order number 1 - you click the button created and it will then transfer the data to the source for printing
Then this needs to be copied so that so the rows 8-15 can also be copied by a single press of the button, hope this makes sense
Sheets("SourceSheet").Range("A1").Copy Destination:=Sheets("TargetSheet").Range("D5")
Sheets("SourceSheet").Range("A3").Copy Destination:=Sheets("TargetSheet").Range("D6")
Sheets("SourceSheet").Range("C2:C6").Copy Destination:=Sheets("TargetSheet").Range("B7:B11")
Sheets("SourceSheet").Range("B2:B6").Copy Destination:=Sheets("TargetSheet").Range("A7:A11")
Sheets("SourceSheet").Range("C1").Copy Destination:=Sheets("TargetSheet").Range("B6")
Sheets("SourceSheet").Range("E5").Copy Destination:=Sheets("TargetSheet").Range("E5")
This 7 rows of data then will be repeated and want to be able to copy & paste these 7 rows and the button, so that when that button is pressed it then copies the data from the Source to the Destination for the next 7 rows of data.
So the first 7 rows will be order number 1 - you click the button created and it will then transfer the data to the source for printing
Then this needs to be copied so that so the rows 8-15 can also be copied by a single press of the button, hope this makes sense