Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is Selected?
How can I determine or identify what is Selected on the ActiveSheet? Is it a
cell or group of cells? Is it a Shape or Chart or something else? -- Gary''s Student - gsnu201001 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is Selected?
s = TypeName(Selection)
If that returns "Range" go on to examine the range object, eg Selection.Areas.Count ' if 1 it's a multiple selection Selection.Count ' if =1 it's a single cell With objects Selection returns the name at the DrawingObject level, eg "Rectangle" or if multiple "DrawingObjects". With an Active chart it'll be the name of the chart element, eg PlotArea, Series, Point, etc Regards, Peter T "Gary''s Student" wrote in message ... How can I determine or identify what is Selected on the ActiveSheet? Is it a cell or group of cells? Is it a Shape or Chart or something else? -- Gary''s Student - gsnu201001 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
What is Selected?
Thanks!
-- Gary''s Student - gsnu201001 "Peter T" wrote: s = TypeName(Selection) If that returns "Range" go on to examine the range object, eg Selection.Areas.Count ' if 1 it's a multiple selection Selection.Count ' if =1 it's a single cell With objects Selection returns the name at the DrawingObject level, eg "Rectangle" or if multiple "DrawingObjects". With an Active chart it'll be the name of the chart element, eg PlotArea, Series, Point, etc Regards, Peter T "Gary''s Student" wrote in message ... How can I determine or identify what is Selected on the ActiveSheet? Is it a cell or group of cells? Is it a Shape or Chart or something else? -- Gary''s Student - gsnu201001 . |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Multiple cells or columns are selected instead of selected cell or | Excel Discussion (Misc queries) | |||
Cells are selected but aren't displayed as selected | Excel Discussion (Misc queries) | |||
Cells are selected but aren't displayed as selected | Excel Worksheet Functions | |||
Macro to take selected cells times a selected cell | Excel Programming | |||
how do i make it so that when a sheat is selected either via link or tab, that xlLastCell is selected. the last on the sheet. | Excel Worksheet Functions |