Merge data from one worksheet to another

Garrek

Board Regular
Joined
Aug 22, 2019
Messages
53
I'm trying to merge data from a weekly report into a master sheet that runs calculations. The weekly report is always formatted the same, and the calculation sheet will be as well. What's the easiest way to import data from the report to the master? I.E. F33 on the report will always need to populate B5 on the master etc. Would it be easiest to use VBA to complete this? There are enough numbers that manually copying and pasting every week would be a big hassle.

My big concern right now is naming, as the weekly report always has the same name, so I don't want it to pull from the wrong report.
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Do you need something like this?

Code:
Sub Merge_data()
  Dim sh1 As Worksheet, sh2 As Worksheet
  Set sh1 = Sheets("Report")
  Set sh2 = Sheets("Master")
  sh2.Range("B5").Value = sh1.Range("F33").Value
  'put the next cells
  sh2.Range("D6").Value = sh1.Range("G50").Value
  'etc
End Sub
 
Upvote 0

Forum statistics

Threads
1,213,559
Messages
6,114,302
Members
448,564
Latest member
ED38

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