When I run the code below, I try to get a selection object and a workbooks collection object back from Excel. The workbooks collection comes back fine, but the selection object is always coming back undefined, even when i've got several cells selected. Any idea why this would be the case? My limited understanding of how Excel's objects works could obviously be the problem here :)
Thanks,
Jeff
pro xl_test
xl = obj_new('IDLcomIDispatch$PROGID$Excel.Application')
xl->GetProperty, Selection=oSel, Workbooks=oBooks
help, oSel, oBooks
obj_destroy, xl, oSel, oBooks
end
|