K
ksnapp
here is the code
Sub dater3()
Dim lr As Single
Dim r As Variant
Dim Sr As Long
r = Range("a1").Value
r = Day(r)
MsgBox (r)
Windows("Navy Cash stats April.xls").Activate
Sheets(r).Select
With ActiveSheet
lr = Cells(Rows.Count, 1).End(xlUp).Row
Range("a1", Cells(lr, 1)).Select
For Each cell In Selection
If cell.Value = "7:00" Then
cell.Select
Sr = cell.Row
End If
Next
End With
MsgBox (Sr)
End Sub
the thing is that the last message box comes back zero
there is a cell in that range that says "7:00" its number is 16.
think that the format of X:XX is messin it all up. I can't figure
way around this.
Help Pleas
Sub dater3()
Dim lr As Single
Dim r As Variant
Dim Sr As Long
r = Range("a1").Value
r = Day(r)
MsgBox (r)
Windows("Navy Cash stats April.xls").Activate
Sheets(r).Select
With ActiveSheet
lr = Cells(Rows.Count, 1).End(xlUp).Row
Range("a1", Cells(lr, 1)).Select
For Each cell In Selection
If cell.Value = "7:00" Then
cell.Select
Sr = cell.Row
End If
Next
End With
MsgBox (Sr)
End Sub
the thing is that the last message box comes back zero
there is a cell in that range that says "7:00" its number is 16.
think that the format of X:XX is messin it all up. I can't figure
way around this.
Help Pleas