Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is column selected
Is there some simple way in VBA to tell if the user has selected an entire
column? TIA josh |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is column selected
Hi Josh
MsgBox Selection.Rows.Count = ActiveSheet.Rows.Count returns true if an entirecolumn is selected -- XL2002 Regards William "Josh Sale" <jsale@tril dot cod wrote in message ... | Is there some simple way in VBA to tell if the user has selected an entire | column? | | TIA | | josh | | |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is column selected
Hi,
Sub TEST() If TypeName(Selection) = "Range" Then If Selection.Areas.Count = 1 Then If Selection.Areas(1).Rows.Count = Rows.Count Then MsgBox "OK" End If End If End If End Sub -- Regards, Soo Cheon Jheong _ _ ^ąŻ^ -- |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Is column selected
William, Soo,
Thanks for the insight! I like it. Thanks, josh |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Protect selected column | Excel Discussion (Misc queries) | |||
HOW DO I ALPHABETIZ A SELECTED COLUMN | Excel Worksheet Functions | |||
getting value 1 column to right of cell selected in pulldown | Excel Worksheet Functions | |||
Add selected numbers in a column that are a different color | Excel Discussion (Misc queries) | |||
how to know the column/row of a selected cell in vba? | Excel Programming |