PC Review


Reply
Thread Tools Rate Thread

Determining if a chart is selected

 
 
roybrew@att.net
Guest
Posts: n/a
 
      25th Jan 2005
Is there any way (property) to determine if an embedded chart on a
sheet is selected or if it exists? Or is the best way to try access
the ActiveChart and catch the error. We have to make sure that the
ActiveChart, if it exists, is Deselected before performing a certain
operation and we only want to Deselect it if it is, in fact, selected.
Any info this would be appreaciated. Thanks.

Roy

 
Reply With Quote
 
 
 
 
Tushar Mehta
Guest
Posts: n/a
 
      25th Jan 2005
Trapping the error if Activechart doesn't yield anything is the
quickest way to do it. You could, of course, start with the selection
and loop to check if it is a chart (chartobject?) or a workbook and if
not move to the parent. If you get to a workbook or the application,
the selected object is not a chart or a component of one.

--
Regards,

Tushar Mehta
www.tushar-mehta.com
Excel, PowerPoint, and VBA add-ins, tutorials
Custom MS Office productivity solutions

In article <(E-Mail Removed)>,
(E-Mail Removed) says...
> Is there any way (property) to determine if an embedded chart on a
> sheet is selected or if it exists? Or is the best way to try access
> the ActiveChart and catch the error. We have to make sure that the
> ActiveChart, if it exists, is Deselected before performing a certain
> operation and we only want to Deselect it if it is, in fact, selected.
> Any info this would be appreaciated. Thanks.
>
> Roy
>
>

 
Reply With Quote
 
roybrew@att.net
Guest
Posts: n/a
 
      25th Jan 2005
Thanks for the information. Quickest way is what I want here. I
thought that might be the case, but wanted to make sure that there
wasn't some property I could test.

Roy

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel 2007 Chart - determining the color of a chart style Shane Devenshire Microsoft Excel Charting 1 6th Feb 2010 04:09 AM
Determining row # of selected cell =?Utf-8?B?Qm9i?= Microsoft Excel Programming 2 25th Sep 2007 12:28 PM
Determining curently selected record... Brad Pears Microsoft Access Form Coding 2 9th Jun 2005 03:54 PM
Determining how a combo box got selected Juan Galvez Microsoft Access Form Coding 4 5th Mar 2004 02:18 PM
Determining selected worksheet Bob Conar Microsoft Excel Programming 3 20th Oct 2003 01:51 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:54 AM.