
Sub leggi()
wbPath = "F:Download"
wbName = "2.xlsx"
wsName = "Foglio1"
cellRef = "A1"
Ret = "'" & wbPath & "[" & wbName & "]" & _
wsName & "'!" & Range(cellRef).Address(True, True, -4150)
if ExecuteExcel4Macro(Ret) = "X" then exit sub
Workbooks.Open(wbPath & wbName)
End Sub |
