I have the below code I need to modify to add an "If" the file goal.xlsx exists.
If it doesn't - do nothing. If it does import it.
If it doesn't - do nothing. If it does import it.
VBA Code:
Sub AOpenWB()
Application.ScreenUpdating = False
'Some Clean up first Clears import page
Sheets("Import").Select
Cells.Select
Selection.ClearContents
'Opens IEP GOAL data from same goal.
Workbooks.Open "L:\Database\Goals\DropOff\goals.xlsx"
Windows("goals.xlsx").Activate
Cells.Select
Selection.Copy
Windows("GoalConditioner.xlsm").Activate
Cells.Select
ActiveSheet.Paste
Workbooks("goals.xlsx").Close SaveChanges:=False
Windows("GoalConditioner.xlsm").Activate
End Sub