Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default xl2007, problem with Activechart.Deselect

The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".

When I use this command it doesn't appear to do anything.

In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.

Is there someway to get this command to work?

I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one in xl2007.

I should point out that my xl2007 test system also has xl2003
installed on it.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default xl2007, problem with Activechart.Deselect

I've noticed this. I think I got around it by using

Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


wrote in message
ps.com...
The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".

When I use this command it doesn't appear to do anything.

In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.

Is there someway to get this command to work?

I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one in xl2007.

I should point out that my xl2007 test system also has xl2003
installed on it.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default xl2007, problem with Activechart.Deselect

Do you use both of those statements in succession?

I have been using ActiveChart.Parent.Select

This doesn't get all the way out of edit mode on an embedded chart,
but it does allow some of my macros to continue running.

Have you also tried

ActiveCell.Select

A problem with selecting a cell is it may cause the display to scroll
when you don't want it to.

I've also tried

ActiveChart.Parent.TopLeftCell.Select

This of course will get you all the way out of edit mode (embedded
charts only). If the chart is in the display, then no scrolling will
happen.

Brian




On May 6, 6:10 pm, "Jon Peltier"
wrote:
I've noticed this. I think I got around it by using

Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutionshttp://PeltierTech.com
_______

wrote in message

ps.com...

The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".


When I use this command it doesn't appear to do anything.


In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.


Is there someway to get this command to work?


I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one in xl2007.


I should point out that my xl2007 test system also has xl2003
installed on it.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default xl2007, problem with Activechart.Deselect

Brian -

I'm working from memory, and don't remember if 2007 could escape active
chart mode with just selecting a cell. It does a lot of things in subtly
different ways than 2003.

I suspect you will be better served to have separate 2003 and 2007 versions
of your add-in. The hassle of maintaining two versions of your add-in may
overcome the hassle of making one add-in version which is compliant in both
Excel versions.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
http://PeltierTech.com
_______


wrote in message
oups.com...
Do you use both of those statements in succession?

I have been using ActiveChart.Parent.Select

This doesn't get all the way out of edit mode on an embedded chart,
but it does allow some of my macros to continue running.

Have you also tried

ActiveCell.Select

A problem with selecting a cell is it may cause the display to scroll
when you don't want it to.

I've also tried

ActiveChart.Parent.TopLeftCell.Select

This of course will get you all the way out of edit mode (embedded
charts only). If the chart is in the display, then no scrolling will
happen.

Brian




On May 6, 6:10 pm, "Jon Peltier"
wrote:
I've noticed this. I think I got around it by using

Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutionshttp://PeltierTech.com
_______

wrote in message

ps.com...

The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".


When I use this command it doesn't appear to do anything.


In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.


Is there someway to get this command to work?


I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one in xl2007.


I should point out that my xl2007 test system also has xl2003
installed on it.





  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default xl2007, problem with Activechart.Deselect

Did you try what I suggested in my reply to your post under subject -
"excel 2007 problem, activewindow.visible = false does not work"

Regards,
Peter T

wrote in message
oups.com...
Do you use both of those statements in succession?

I have been using ActiveChart.Parent.Select

This doesn't get all the way out of edit mode on an embedded chart,
but it does allow some of my macros to continue running.

Have you also tried

ActiveCell.Select

A problem with selecting a cell is it may cause the display to scroll
when you don't want it to.

I've also tried

ActiveChart.Parent.TopLeftCell.Select

This of course will get you all the way out of edit mode (embedded
charts only). If the chart is in the display, then no scrolling will
happen.

Brian




On May 6, 6:10 pm, "Jon Peltier"
wrote:
I've noticed this. I think I got around it by using

Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutionshttp://PeltierTech.com
_______

wrote in message

ps.com...

The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".


When I use this command it doesn't appear to do anything.


In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.


Is there someway to get this command to work?


I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one in xl2007.


I should point out that my xl2007 test system also has xl2003
installed on it.







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default xl2007, problem with Activechart.Deselect

Dear Peter,

I did reply in that other thread, but I see now that my reply is not
there. I wonder why.

I recall that your suggestion looked like it was essentially to select
a cell on the worksheet. I am specifically trying to get around
selecting a worksheet cell to get out of edit mode on an embedded
chart.

Activewindow.visible = false does this in all earlier excel versions,
but not in xl2007.

Brian



On May 7, 8:48 am, "Peter T" <peter_t@discussions wrote:
Did you try what I suggested in my reply to your post under subject -
"excel 2007 problem, activewindow.visible = false does not work"

Regards,
Peter T

wrote in message

oups.com...

Do you use both of those statements in succession?


I have been using ActiveChart.Parent.Select


This doesn't get all the way out of edit mode on an embedded chart,
but it does allow some of my macros to continue running.


Have you also tried


ActiveCell.Select


A problem with selecting a cell is it may cause the display to scroll
when you don't want it to.


I've also tried


ActiveChart.Parent.TopLeftCell.Select


This of course will get you all the way out of edit mode (embedded
charts only). If the chart is in the display, then no scrolling will
happen.


Brian


On May 6, 6:10 pm, "Jon Peltier"
wrote:
I've noticed this. I think I got around it by using


Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutionshttp://PeltierTech.com
_______


wrote in message


ups.com...


The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the active
chart".


When I use this command it doesn't appear to do anything.


In the VBE, when entering the above statement, after pressing the "."
and the drop down list of properties and methods appears, the Deselect
method is not in the list. Although the statement can be executed
without generating any error message.


Is there someway to get this command to work?


I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic looks
to be essentially equivalent to the one inxl2007.


I should point out that myxl2007test system also has xl2003
installed on it.



  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default xl2007, problem with Activechart.Deselect

I recall that your suggestion looked like it was essentially to select
a cell on the worksheet.


That was the second step after activating .Windows(2), and subject to the
typical assumptions I mentioned (which can be catered for as necessary). I
don't use Activewindow.visible = false, at least not for deselecting charts.

FWIW, I only use cht.DeSelect as a step if the .ShowWindow property is true

I will be interested to know what works though, fairly soon I will have to
follow your path into 2007!

Regards,
Peter T

wrote in message
oups.com...
Dear Peter,

I did reply in that other thread, but I see now that my reply is not
there. I wonder why.

I recall that your suggestion looked like it was essentially to select
a cell on the worksheet. I am specifically trying to get around
selecting a worksheet cell to get out of edit mode on an embedded
chart.

Activewindow.visible = false does this in all earlier excel versions,
but not in xl2007.

Brian



On May 7, 8:48 am, "Peter T" <peter_t@discussions wrote:
Did you try what I suggested in my reply to your post under subject -
"excel 2007 problem, activewindow.visible = false does not work"

Regards,
Peter T

wrote in message

oups.com...

Do you use both of those statements in succession?


I have been using ActiveChart.Parent.Select


This doesn't get all the way out of edit mode on an embedded chart,
but it does allow some of my macros to continue running.


Have you also tried


ActiveCell.Select


A problem with selecting a cell is it may cause the display to scroll
when you don't want it to.


I've also tried


ActiveChart.Parent.TopLeftCell.Select


This of course will get you all the way out of edit mode (embedded
charts only). If the chart is in the display, then no scrolling will
happen.


Brian


On May 6, 6:10 pm, "Jon Peltier"
wrote:
I've noticed this. I think I got around it by using


Worksheets("Sheet1").Activate
Worksheets("Sheet1").Range("A1").Select


- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutionshttp://PeltierTech.com
_______


wrote in message


ups.com...


The online help for excel 2007 says that Activechart.Deselect is
supposed to "be equivalent to pressing ESC while working on the

active
chart".


When I use this command it doesn't appear to do anything.


In the VBE, when entering the above statement, after pressing the

"."
and the drop down list of properties and methods appears, the

Deselect
method is not in the list. Although the statement can be executed
without generating any error message.


Is there someway to get this command to work?


I've have not used it in earlier versions of excel, but it is in
xl2002, and it seems to work fine there. The online help topic

looks
to be essentially equivalent to the one inxl2007.


I should point out that myxl2007test system also has xl2003
installed on it.





Reply
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
XL2007 - Axis Scaling Dialog problem Martin Brown Charts and Charting in Excel 4 September 17th 07 02:44 PM
charting problem with activechart.setsourcedata Mary Kathryn Excel Discussion (Misc queries) 4 February 25th 06 08:54 PM
ActiveChart.Deselect won't Deselect Mark Stephens Charts and Charting in Excel 2 June 16th 05 02:54 AM
Activechart.SetSourceMethod problem grinning_crow Excel Programming 2 March 1st 04 10:07 PM
Argument List Of ActiveChart.Location And ActiveChart.ChartType Mo[_3_] Excel Programming 2 September 1st 03 11:12 PM


All times are GMT +1. The time now is 07:53 PM.

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"