Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 49
Default excel 2007 problem, activewindow.visible = false does not work

Hello All,

I'm just now starting to port a huge addin to excel 2007. What a
mess!

To get out of chart edit mode on an embedded chart, I have always used
the following:

ActiveWindow.Visible = False

But this doesn't seem to work in Excel 2007.

Is there a simple way to get out of chart edit mode and return to the
worksheet?

I suppose doing a Select of a worksheet cell might do it, but I'd
rather not have to do it that way.

Thanks,

Brian Murphy

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,600
Default excel 2007 problem, activewindow.visible = false does not work

Hi Brian,

I don't have Excel 2007, in earlier versions simply Range("A1").select
normally works (but not always). I use at least one extra step, this is a
small snippet from a routine I use to de-select an embedded chart.

Assuming -
- Selection is an ActiveChart but not the ChartObject, eg ChartArea
- The ShowWindow property is false
- Apart from the chart window the Workbook only has one other window which
is visible
- The Chartobject is on a Worksheet, not on a chart-sheet

With ActiveWorkbook.Windows(2)
.Activate ' selects the chartobject
.VisibleRange(1, 1).Select
' or .RangeSelection(1, 1).Select if it intersects the VisibleRange
End With

This caters for 'the' typical scenario, but should check and cater for
others, ie the assumptions.

Regards,
Peter T


wrote in message
ups.com...
Hello All,

I'm just now starting to port a huge addin to excel 2007. What a
mess!

To get out of chart edit mode on an embedded chart, I have always used
the following:

ActiveWindow.Visible = False

But this doesn't seem to work in Excel 2007.

Is there a simple way to get out of chart edit mode and return to the
worksheet?

I suppose doing a Select of a worksheet cell might do it, but I'd
rather not have to do it that way.

Thanks,

Brian Murphy



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
What's the best way to toggle between true and false in Excel? Hiall, My excel work involves a lot of toggling between true and false (booleantypes) ... and it's very repetitive... Is there a way to select a bunch ofcells, and press a key short-cu LunaMoon Excel Discussion (Misc queries) 9 July 29th 08 12:28 AM
Excel.ActiveWindow Is Excel.ActiveWindow Returns False Neal Andrews Excel Programming 1 October 26th 06 11:10 AM
ActiveWindow.Visible = True Paulo Alexandre ( PT ) Excel Programming 5 September 29th 06 12:02 PM
ActiveWindow VBA problem Tomasz Klim[_2_] Excel Programming 2 June 11th 06 11:04 PM
Problem with using the ActiveWindow property - sometimes Ragnar Midtskogen Excel Programming 1 November 24th 04 02:37 PM


All times are GMT +1. The time now is 02:56 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"