still learning
Well-known Member
- Joined
- Jan 15, 2010
- Messages
- 784
- Office Version
- 365
- Platform
- Windows
Hi
I have dates ( 10/29/20 formatted as mmm-dd) in range “days”, which is column A
When I open the workbook, I have a open macro (in this workbook) that go's to today’s date and scroll it to the top .I only use sheet 1
After the open macro runs, I’m trying to get the cell to flash
The below stops at >>>If Range(“days”)….>
I have to get that corrected to see if anything else is wrong with it
this macro is in sheet 1
mike
I have dates ( 10/29/20 formatted as mmm-dd) in range “days”, which is column A
When I open the workbook, I have a open macro (in this workbook) that go's to today’s date and scroll it to the top .I only use sheet 1
VBA Code:
Private Sub Workbook_open()
Set C = Range("A:A").Find(Date)
If Not C Is Nothing Then C.Select
ActiveWindow.ScrollRow = ActiveCell.Row
ActiveWindow.SmallScroll Down:=-1
End Sub
After the open macro runs, I’m trying to get the cell to flash
The below stops at >>>If Range(“days”)….>
I have to get that corrected to see if anything else is wrong with it
this macro is in sheet 1
VBA Code:
Sub flashday()
Dim i As Long
If Range("days").Value = [Today()] Then
Application.EnableEvents = False
With Range("days")
For i = 1 To 1
.Font.ColorIndex = 2
Application.Wait (Now + TimeValue("00:00:01"))
.Font.ColorIndex = 3
Application.Wait (Now + TimeValue("00:00:01"))
Next i
End With
Application.EnableEvents = True
End If
End Sub
mike