I am new to coding and trying to do the following:
Workbook tracking contains project information that is taken from an input tutorial. I try to open the input book, copy all the data in the project information sheet and skip it into the project information sheet of the tracking workbook. 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 opens the ok file, but then it seems to stop before copying the data. I canβt pinpoint the error. I searched for several topics with similar problems, but they were out of luck. Is there something wrong with my coding?
excel-vba excel
Enrico caruso
source share