Navigate to a specific colored cell upon opening - Excel

Worksheet where row 1 starting with cell F contains dates at a 45 degree angle. The dates have conditional formatting. Yellow for weekends and Red for today's date. The color is FILL not text color. Also, columns A-E are frozen (locked) in place to scroll horizontally for the dates.

Is it possible that upon opening that today's date (Red fill) is positioned to be the first full date visible? With the 45 degree angle there would be two date cells to the left that are partially in view.

Thanks for any assistance or guidance
dgd1212Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Martin LissOlder than dirtCommented:
I don't see why you need to worry about the color when you are looking for today's date so I may be missing something, but try this. Change the sheet name as needed.

Private Sub Workbook_Open()
    Dim cel As Range
    Dim lngLastCol As Long
    Dim strLastCol As String
    
    With Sheets("Sheet1")
        .Activate
        lngLastCol = .Cells.Find("*", SearchOrder:=xlByColumns, LookIn:=xlValues, SearchDirection:=xlPrevious).Column

        strLastCol = Split(.Cells(1, lngLastCol).Address, "$")(1)
        For Each cel In Range("F1:" & strLastCol & "1")
            If Format(cel.Value, "short date") = Format(Date, "short date") Then
                ActiveWindow.ScrollColumn = cel.Column
                Exit Sub
            End If
        Next
    End With
    
End Sub

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dgd1212Author Commented:
Thank you!
Martin LissOlder than dirtCommented:
You're welcome and I'm glad I was able to help.

In my profile you'll find links to some articles I've written that may interest you.
Marty - MVP 2009 to 2014
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.