Pull values from columns to cells in another sheet

inkbird1

Board Regular
Joined
Apr 21, 2020
Messages
51
Hello friends.

I have a tab (DATA) with a data table and another tab (FORM) with a data table starting on row 13.
I would like to extract values from the DATA tab columns a,b,c and put them into the FORM tab starting at row 13 when the button is clicked

DATA TAB

DATA tab.PNG


FORM TAB


FORM.PNG
 

Attachments

  • 1614034125499.png
    1614034125499.png
    13.4 KB · Views: 0

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Will this work for you? Assign the macro to the button on the FORM sheet.

Code:
Sub PullData()
Dim lastrow As Long
lastrow = Worksheets("DATA").Cells(Rows.Count, "A").End(xlUp).Row
Worksheets("DATA").Range("A1:C" & lastrow).Copy Destination:=Worksheets("FORM").Range("A13:C" & lastrow + 12)
End Sub
 
Upvote 0
Will this work for you? Assign the macro to the button on the FORM sheet.

Code:
Sub PullData()
Dim lastrow As Long
lastrow = Worksheets("DATA").Cells(Rows.Count, "A").End(xlUp).Row
Worksheets("DATA").Range("A1:C" & lastrow).Copy Destination:=Worksheets("FORM").Range("A13:C" & lastrow + 12)
End Sub

Thanks,

i did simplify my request - the data is columns a b c d e but i only need to extract values from a b and d
 
Upvote 0
If the data is coming from a, b, and d and going into a, b, and d starting in row 13, then this modification should do it.

[code'
Sub PullData()
Dim lastrow As Long
lastrow = Worksheets("DATA").Cells(Rows.Count, "A").End(xlUp).Row
Worksheets("DATA").Range("A1:B" & lastrow).Copy Destination:=Worksheets("FORM").Range("A13:B" & lastrow + 12)
Worksheets("DATA").Range("D1:D" & lastrow).Copy Destination:=Worksheets("FORM").Range("D13:D" & lastrow + 12)
End Sub[/code]
 
Upvote 0

Forum statistics

Threads
1,214,402
Messages
6,119,304
Members
448,886
Latest member
GBCTeacher

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