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

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
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,864
Messages
6,121,986
Members
449,058
Latest member
oculus

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