"Macro" that will pull data from one sheet to another sheet.

robert220

New Member
Joined
Jul 25, 2008
Messages
9
I'm extremely new to Macro's and I'm looking to pull multiple columns from one sheet to paste in another sheet. I've looked at other post but none really stuck out to me.
sheets are Raw Data and want to copy and past to sheet Inventory. I will be pulling columns from raw data A range 2:900 and same for columns B, C, D, E, F, G, H. and pasting to Inventory columns B-I.
Any Help would be appreciated.
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Is this what you want

Code:
Sub t()
Sheets("Raw Data").Range("A2:H900").Copy Sheets("Inventory").Cells(Rows.Count, 2).End(xlUp)(2)
End Sub
 
Upvote 0
JLGWhiz,
for some reason when i run the script it does what it's suppose to but starts with cell 496 down instead of B2
 
Upvote 0
Please Try

Code:
Sub Update_Inventory()
Sheets("Inventory").Range("B2:I900").Value = Sheets("Raw Data").Range("A2:H900").Value
End Sub

This is basically copying infromatuob for Raw Data and pasting as values in Inventory.
 
Upvote 0
JLGWhiz,
for some reason when i run the script it does what it's suppose to but starts with cell 496 down instead of B2

Just for clarification. The reason the code posted the copied values beginning on row 496 was because there was already data on the Inventory sheet in the preceeding rows of column B. The code will post to a range beginning with the next available row of column B. The OP was not clear on whether you wanted to replace old data each time, or if there was existing data on the Inventory sheet.
 
Upvote 0

Forum statistics

Threads
1,215,821
Messages
6,127,053
Members
449,356
Latest member
tstapleton67

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