Use vba to copy cells from one workbook to another?

jondavis1987

Active Member
Joined
Dec 31, 2015
Messages
443
Office Version
  1. 2019
Platform
  1. Windows
I have a workbook where I enter information.
The workbook I enter information is is 3011-EST-1604
This workbook has two sheets in it. The sheet I need information off of is sheet2
Sheet2 Cells J18:25

The workbook I have to transfer data to is called Yearly HMA Charts
The worksheet is called "Sieves"
I need it to go into a table that I already have set up. It would need to enter at the bottom of the table and in column G.
So right now if I were to copy and paste those cells it would expand the table and go into G1640:G1647

I don't really know where to even start with this and would I have to have both workbooks open or is it possible to do it without having open the one that gets pasted into
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Code:
Sub Open_ExistingWorkbook()
Workbooks.Open (" Users\jdavis\Dropbox\Quality Control\Asphalt\Misc\Yearly HMA Charts.xls ")
Workbook(”Users\jdavis\Dropbox\Quality Control\Asphalt\Asphalt Worksheets\3011-EST-1604.xls”)
Sheets(“Sheet2”).Range(“J18:J25”).Select
Selection.Copy
Workbooks("Users\jdavis\Dropbox\Quality Control\Asphalt\Misc\Yearly HMA Charts.xls ").Select
Sheets(“Sieves”).Select
 
Workbooks("Users\jdavis\Dropbox\Quality Control\Asphalt\Misc\Yearly HMA Charts.xls ").Close SaveChanges:=True
End Sub

I think this will work close for what I have but I don't know how to make it paste into the table
 
Upvote 0

Forum statistics

Threads
1,214,808
Messages
6,121,681
Members
449,048
Latest member
81jamesacct

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