Hi,
I am trying to read some values from a closed workbook.
I use the following code
But GetData always have this value 'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY[Upload.xla]Hidden'!R4C1Dim 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
instead of getting the value from the address R4C1 in hidden sheet in Upload addin , it always has the as path to address which is "'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY[CostUpload.xla]Hidden'!R4C1"
Can u anyone tell me where I am going wrong??
Last edited by Ranjani; 05-04-2009 at 05:11 PM.
As a minimum, you're missing the backslash after LIBRARY in the path.
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
Hi SHg,
I did try that , i changed data to "'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1"
and GetData still holds the value 'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1.
Thanks
Hi Shg,
I removed the enclosing string in
toData = "'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1"
and it worked !!Data = 'C:\Program Files (x86)\Microsoft Office\Office12\LIBRARY\[CostUpload.xla]Hidden'!R4C1
Thanks Shg,
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks