VBA: Count the Columns in a Selection
If you ever need to count the number of Columns that were selected, use Selection.Columns.Count
Put this in a module:
Public Sub CountMyColumns() MsgBox Selection.Columns.Count End Sub
Leave a comment
| Trackback


