PC Review


Reply
Thread Tools Rate Thread

code to deselect a chart modified by VBA

 
 
Brad
Guest
Posts: n/a
 
      10th Apr 2007
I have a series of charts on a dedicated chart worksheet with attached VBA
routines to change various inputs for each chart. At the conclusion of the
VBA work, it leaves the chart just worked on "selected" ... with the clear
circles at the corners and chart mid-points indicating such, not the solid
circles.

I tried adding a terminal line in the VBA code, ActiveChart.deselect, and
got an error message. And, I tried ActiveSheet.Shape("Chart 733").Deselect
with the same outcome for a chart named as such.

My thanks in advance for the code I need to add to deselect my charts.

Cheers! Brad


 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      10th Apr 2007
How about just selecting a cell on that worksheet?

Brad wrote:
>
> I have a series of charts on a dedicated chart worksheet with attached VBA
> routines to change various inputs for each chart. At the conclusion of the
> VBA work, it leaves the chart just worked on "selected" ... with the clear
> circles at the corners and chart mid-points indicating such, not the solid
> circles.
>
> I tried adding a terminal line in the VBA code, ActiveChart.deselect, and
> got an error message. And, I tried ActiveSheet.Shape("Chart 733").Deselect
> with the same outcome for a chart named as such.
>
> My thanks in advance for the code I need to add to deselect my charts.
>
> Cheers! Brad


--

Dave Peterson
 
Reply With Quote
 
Peter T
Guest
Posts: n/a
 
      10th Apr 2007
Just to add -

> it leaves the chart just worked on "selected"


If "just worked on" means by your code, you are probably including
unnecessary Activate or Select statements that can be removed thereby
leaving user's original selection unchanged.

Regards,
Peter T



"Brad" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I have a series of charts on a dedicated chart worksheet with attached VBA
> routines to change various inputs for each chart. At the conclusion of

the
> VBA work, it leaves the chart just worked on "selected" ... with the clear
> circles at the corners and chart mid-points indicating such, not the solid
> circles.
>
> I tried adding a terminal line in the VBA code, ActiveChart.deselect, and
> got an error message. And, I tried ActiveSheet.Shape("Chart 733").Deselect
> with the same outcome for a chart named as such.
>
> My thanks in advance for the code I need to add to deselect my charts.
>
> Cheers! Brad
>
>



 
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
deselect chart MikeF Microsoft Excel Programming 2 22nd Jan 2010 06:02 AM
Re: Chart Deselect in 2007 Jon Peltier Microsoft Excel Programming 0 24th Apr 2008 03:33 PM
How to deselect a selected chart programatically? =?Utf-8?B?c3IxNTI=?= Microsoft Excel Charting 3 28th Jan 2006 03:22 AM
deselect chart with keyboard H Microsoft Excel Misc 0 23rd Aug 2004 05:36 PM
What VBA Stmt Will Deselect a Chart? SidBord Microsoft Excel Charting 2 12th Jun 2004 11:43 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:57 PM.