I am interfacing Excel from Matlab by using ActiveX. I want to get the content of a cell by referencing it in the R1C1 style. I am trying with the ActiveX method ConvertFormula but I get an Error Messsage "Index =ActiveX VT_ERROR:".
Excel=actxGetRunningServer('Excel.Application'); %Excel must be running
Index=ConvertFormula(Excel,'R1C1','XlA1') %This fails
...
delete(Excel)
Things I discovered:
-Method Range cannot handle the R1C1 style
-The Cells method, used in Visual Basic for referencing cells in R1C1 style (e.g. ActiveSheet.Cells(1, 1).Select;), seems not to be available in Matlab Active X.
-The prototype of method ConvertFormula looks different in Matlab and in MS Help.
Matlab: Variant ConvertFormula(handle, Variant, XlReferenceStyle, Variant(Optional))
MS: http://msdn.microsoft.com/en-us/library/aa297823(v=office.10).aspx
Thanks in advance for help
Malte
Thanks!
"maltehof" wrote in message <iltcsg$aqi$1...@ginger.mathworks.com>...