Thanks Dom, but my goal is to be able to call it (formula) within ExecuteExcel4Macro.
On my previous post I linked a thread that has this code in it which is similar to what I'm running to retrieve the values of the cells:
Dim Data As String
On Error GoTo label:
'Data = "'" & Path & "[" & File & "]" & Sheet & "'!" & "$A$4"
Data = """" & "'" & Path & "[" & File & "]" & Sheet & "'!" & Range("$A$4").Range("A1").Address(, , xlR1C1) & """"
GetData = ExecuteExcel4Macro(Data)
label:
MsgBox Err.Number & Err.Description
Unless I'm mistaken, I believe I should be able to enter a FORMULA in the following part of the code... hopefully there is a formula to extract comments.
Range("$A$4").Range("A1").Address(, , xlR1C1) & """"
GunNam
Bookmarks