I've got this line in a macro:
Workbooks.Open Filename:= _
"\\IN-ACCOUNTING1\Accounting\EOP_workpapers\Books\AAL\" & Worksheets("Sheet2").Cells(F14) & "\" & Range(Sheet2!F13) & "\CN3008R_CGS.csv"
I'm trying to use cells as references to part of the file path (Sheet2! F14 contains "2012" and Sheet2! F13 contains "04"). What's the right way to do this? I tried doing the references two different ways here, because I don't know the right way to go about this. My apologies, my knowledge of VBA is pretty limited. Please feel free to ask any further questions for clarification.
Thanks guys!
Phil
Workbooks.Open Filename:= _
"\\IN-ACCOUNTING1\Accounting\EOP_workpapers\Books\AAL\" & Worksheets("Sheet2").Cells(F14) & "\" & Range(Sheet2!F13) & "\CN3008R_CGS.csv"
I'm trying to use cells as references to part of the file path (Sheet2! F14 contains "2012" and Sheet2! F13 contains "04"). What's the right way to do this? I tried doing the references two different ways here, because I don't know the right way to go about this. My apologies, my knowledge of VBA is pretty limited. Please feel free to ask any further questions for clarification.
Thanks guys!
Phil