Patricia0923
New Member
- Joined
- Mar 18, 2014
- Messages
- 25
Hi,
I need to transfer data from a workbook named R2D2 to one named Matrix.
It runs after a change event (date data inputted into cell C1).
The code looks like this:
Dim R2D2data As String
Dim Matrix As String
R2D2data = "C:\Users\Owner\Desktop\Excel Projects\R2D2.xlsx"
Matrix = "Matrix Text.xlsm"
Workbooks.Open Filename:=R2D2data
Range("B2:G2").Select
Application.CutCopyMode = False
Selection.Copy
Workbooks(Matrix).Activate
Range("B4:G4").Select
ActiveSheet.Paste
Workbooks.(R2D2data).Activate I get a Run-time error '9' Subscript out of range error here
Range("B3:G3").Select
ActiveSheet.Paste
I need to be able to go back and forth to the R2D2data file many times to extract various pieces of data.
Any help would be appreciated
I need to transfer data from a workbook named R2D2 to one named Matrix.
It runs after a change event (date data inputted into cell C1).
The code looks like this:
Dim R2D2data As String
Dim Matrix As String
R2D2data = "C:\Users\Owner\Desktop\Excel Projects\R2D2.xlsx"
Matrix = "Matrix Text.xlsm"
Workbooks.Open Filename:=R2D2data
Range("B2:G2").Select
Application.CutCopyMode = False
Selection.Copy
Workbooks(Matrix).Activate
Range("B4:G4").Select
ActiveSheet.Paste
Workbooks.(R2D2data).Activate I get a Run-time error '9' Subscript out of range error here
Range("B3:G3").Select
ActiveSheet.Paste
I need to be able to go back and forth to the R2D2data file many times to extract various pieces of data.
Any help would be appreciated