Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
type of selection if selection is chart
this is what msdn says
"The returned object type depends on the current selection (for example, if a cell is selected, this property returns a Range object). The Selection property returns Nothing if nothing is selected." What is the type of selection object if a chart is selected? I am using C++ and COM. IDispatch *pDispatch = m_Application-GetSelection(); if (pDispatch == NULL) return ; CComQIPtr<MSExcel::Range ranges(pDispatch); if (ranges == NULL) return ; If the user selects a chart the ranges object is null, I tried querying for _Chart, even that is null. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
dialog box selection type | Excel Discussion (Misc queries) | |||
Limiting selection in a cell AND linking that selection to a list | Excel Discussion (Misc queries) | |||
Copy Selection - Transpose Selection - Delete Selection | Excel Discussion (Misc queries) | |||
Object Type of a selection... counting rows in a selection | Excel Programming | |||
How to find what object type is returned from Selection property ? | Excel Programming |