Code for copy rows from sheet2 to cheet1

Bengan

New Member
Joined
Oct 1, 2019
Messages
7
I wonder how to copy values from sheet2 raw 4 column A, to sheet 1 row 4 column A.
I will update the values form sheet2 to sheet1 with a button and want it to overwrite sheet1 everytime I uppdate.
The range is between A4 to A299.

PLEASE HELP
Bengt from Sweden
 

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
So you want to copy every row from 4 to 299 from sheet 2 to sheet 1 ?
Is it only the values or are there formulas involved as well ?
 
Upvote 0
Maybe one of these
This one will copy the entire row
Code:
Sub MM1()
Sheets("Sheet2").Rows("4:299").Copy Sheets("Sheet1").Rows("4:4")
End Sub

While this one will only copy column "A"

Code:
Sub MM1()
Sheets("Sheet2").Range("A4:A299").Copy Sheets("Sheet1").Range("A4")
End Sub
 
Upvote 0
Please take a minute to read the forum rules on cross-posting and follow them, especially as you seem to be doing it with every post. Thanks.
 
Upvote 0

Forum statistics

Threads
1,223,703
Messages
6,173,980
Members
452,540
Latest member
haasro02

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