View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Tommy Flynn[_2_] Tommy Flynn[_2_] is offline
external usenet poster
 
Posts: 5
Default Syntax for using the full path to get a value

I'm almost there, but I just can't get it quit right. I am try to get a
value from a cell using the full path to the file. This ain't working, but
it's close. What am I doing wrong?

Sub Test()
pName = "U:\ExcelFiles\ADI-JournalEntries\Current_Month\Advance-O&M_Cur.xls"
MsgBox pName & Sheets("Journal1").Range("R22")
End Sub