This used to work for me and now it no longer works????
1 view (last 30 days)
Show older comments
ran = Range(hExcel.ActiveSheet,XRangeAddress([1,1], 'A1'))
ran =
Interface.00020846_0000_0000_C000_000000000046
K>> ran.Value
Unrecognized function or variable 'Value'.
1 Comment
dpb
on 23 Apr 2025
Edited: dpb
on 24 Apr 2025
What is XRangeAddress? I can find no reference to such a method nor property in VBA documentation...I gather it must be a local function to build an address or somesuch? Whatever it is, it would appear the result while apparently an Excel object isn't a valid Range.
Why not just
hExcel.ActiveSheet.Range('A1').Value
We'd have to see a complete working example to diagnose in detail
Answers (0)
See Also
Categories
Find more on Object Save and Load in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!