VBA/Macro to transfer data between sheets

Fanwood

Board Regular
Joined
Jan 29, 2014
Messages
60
I'm having a hard time moving data from one sheet to another. I am not sure I fully understand how to use something like
"LastRow = Sheets(“Sheet1”).Range(“A” & Rows.Count).End(xlUp).Row." in the correct way

Trying to Accomplish:
Take data from sheet3, Row Q3:AG3
Copying it
Go to sheet1 and paste the data to the next available row that is blank, starting in the A column.
The data in sheet3 (first row) starts at A8 and continues from there.

I hope I have provided enough information

Thank you!
 
Last edited:

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
I was being a dummy and figured out what I was trying to do!

I'm sure there is a better way but this is what I ended up using:

Sub Macro1()
'
' Macro1 Macro
'
Sheets("Sheet3").Select
Range("Q3:AG3").Select
Selection.Copy
Sheets("Sheet1").Select
Range("A" & Rows.Count).End(xlUp).Offset(1).Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks _
:=False, Transpose:=False
'
End Sub
 
Upvote 0
Perhaps.
Code:
Sub Macro1()
'
' Macro1 Macro
'
    Sheets("Sheet3").Range("Q3:AG3").Copy
    Sheets("Sheet1").Range("A" & Rows.Count).End(xlUp).Offset(1).PasteSpecial Paste:=xlPasteValues
'
End Sub
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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