I am new to coding and am trying to perform the following;
Tracking Workbook contains project information which is taken from an input workbook. I am trying to open the input workbook copy all the data on the project info sheet and past it in the tracking workbook's project info sheet.Here is my coding below
Sub GetProjectInfo()
Workbooks.Open Filename:="\\ccprd02\workgrp2\AM\SPIM Input.xlsm"
ActiveSheet("Project Info").Select
Cells.Select
Selection.Copy
Windows("SPIM Tracking Sheet.xlsm").Activate
ActiveSheet("Project Info").Select
Cells.Select
Range("A1").Activate
ActiveSheet.Paste
Range("A1").Select
Windows("SPIM Input.xlsm").Activate
ActiveWindow.Close
End Sub
It is opening the file ok but then seems to stop just before copying the data. I can't seem to pinpoint the error. I have searched several threads with similar issues but have no had any luck. Is there something wrong with my coding?