LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel Shapes selection problem

Hi

I'm trying to determine which shapes (images in my case) are selected
in Excel (Office 2007). However, attempting to get anything useful
from the IDispatch returned from application-selection fails e.g.

CComQIPtr<Excel::ShapeRange ShpRng = pAppXL-Selection;

results in SHpRange being NULL.

Has anyone actually succeeded in using the application Selection
property in Excel from a COM addin, or is this a big bug in Excel?

Incidentally, trying the window Selection property returns the same
IDispatch, again with no useful interface.

Thanks

Steve H
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug, multiple selection of shapes MrT Excel Programming 1 June 19th 06 01:04 PM
Selection order problem with code for shapes connection [email protected] Excel Programming 2 August 12th 05 02:03 PM
Programmatically add shapes to a selection Edward Ulle Excel Programming 3 August 8th 05 12:17 AM
Programmatically add shapes to a selection Edward Ulle Excel Programming 0 June 1st 05 08:29 PM
Disable selection of shapes Mike Excel Programming 3 December 17th 03 01:43 PM


All times are GMT +1. The time now is 08:38 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"