In VBA I'm trying to get a count of date values in a column(in this case column A) when the count may vary.
The sheet may look like
Salary or Salary
1/1/04 1/1/04
1/10/04 1/10/04
1/17/04
Sum Sum
I'm not sure ahead of time which sheet I'l get. In the first case I'd want a count of 2, in the second, 3.
I tried selecting the currentregion (shown), but I it included the Salary Column but that included the Salary Column
Selection.currentregion.Select
Dim myRegion As Range
Set myRegion = Selection
MsgBox myRegion.Columns(1).Cells.Count
thanks for any help.
Mike
The sheet may look like
Salary or Salary
1/1/04 1/1/04
1/10/04 1/10/04
1/17/04
Sum Sum
I'm not sure ahead of time which sheet I'l get. In the first case I'd want a count of 2, in the second, 3.
I tried selecting the currentregion (shown), but I it included the Salary Column but that included the Salary Column
Selection.currentregion.Select
Dim myRegion As Range
Set myRegion = Selection
MsgBox myRegion.Columns(1).Cells.Count
thanks for any help.
Mike