I would like to ensure that the user has only selected cells in one column before launching the macro shown below. Is there an easy way to determine if the range is more than one column?
Code:
Dim strCell As String
Dim c As Range
Dim rng As Range
'
Set rng = Selection.Cells
For Each c In rng
strCell = c.Value
Call RegExp(strCell)
c.Value = strCell
Next c