Sub GetValueMyCloseFile()
Dim ThePath$, NameWB$, ShName$, MyCel$, MyValue$
ThePath = "/Users/UserName/Downloads/"
NameWB = "Exemple.xlsx"
ShName = "TOTO"
MyCel = "A3"
MsgBox GetValueInCloseFile(ThePath, NameWB, ShName, MyCel)
End Sub
Function GetValueInCloseFile(ThePath$, NameWB$, ShName$, MyCel$)
Dim MyValue$
MyValue = "'" & ThePath & "[" & NameWB & "]" & ShName & "'!" & Range(MyCel).Address(True, True, xlR1C1)
GetValueInCloseFile = ExecuteExcel4Macro(MyValue)
End Function