selected cell range when chart is selected

bmurphy

New Member
Joined
Aug 20, 2008
Messages
13
When an on-sheet chart is currently selected, is it possible to determine the currently selected range of worksheet cells? These cells could be any cells and not related to the chart.

From the user interface, if I hit escape a few times, this deselects the chart and the selected cell range becomes the "Selection". But how does one deselect a chart to get at the selected cell range?

The excel 2003 macro recorder simply records
ActiveWindow.Visible = False
But that does not reproduce the action of deselecting the chart.

Thanks,
Brian
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Re: selected cell range when chart is selected - solved

ActiveWindow.RangeSelection
This is the answer. I stumbled across it in a j-walk book. Thanks, John.:)
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top