excellence
Board Regular
- Joined
- Oct 5, 2005
- Messages
- 155
- Office Version
- 365
- Platform
- MacOS
I have this vba to auto open and find today's date from column A and select the cell next to it in column B
Private Sub Workbook_Open()
Dim myDate As Variant, rng As Range
Set rng = Range("A1:A68")
Set myDate = rng.Find(What:=Int(Date), LookIn:=xlFormulas)
Cells(myDate.Row, myDate.Column + 1).Select
End Sub
I have dates in column spanning todays date
I've got it in sheet 1 but doesn't seem to work
Thanks for any help
Private Sub Workbook_Open()
Dim myDate As Variant, rng As Range
Set rng = Range("A1:A68")
Set myDate = rng.Find(What:=Int(Date), LookIn:=xlFormulas)
Cells(myDate.Row, myDate.Column + 1).Select
End Sub
I have dates in column spanning todays date
I've got it in sheet 1 but doesn't seem to work
Thanks for any help