how to get selected multiple range items from C++

S

S Pammar

Hi,

How to get the selected range from C++ using automation ?
The Excel->Application->Selectin object just gives one set
of items. If the user has selected multiple cells using
Ctrl key, then how to get all the selected items ? A
sample would be helpful.

Thanks,
Pammar
 
W

Wei-Dong Xu [MSFT]

Hi Pammar,

Very good question!

I'd suggest you can check the KB article Q186122 for this issue. Please go
to:
186122 HOWTO: Use MFC to Automate Excel and Obtain an Array from a Range
http://support.microsoft.com/?id=186122

Does this answer your question? Thank you for using Microsoft NewsGroup!

Wei-Dong Xu
Microsoft Product Support Services
Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top