How To Insert The Current Date In Excel?

Please see thee attached Excel Sheet.
If I have an Excel Macro that is going to insert new data into column B,C,D,E once a day,
what is the best way to insert the "Current Day" into Column A so that the Macro will do this for me? (As an example I would need Column A Row 3 as 9/28/2013, then Row 4 as 9/29/2013, etc.

Any help would be greatly appreciated.
Thank you...
Rick
HowToPutDate.xls
ES-ComponentsAsked:
Who is Participating?
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.

FamousMortimerCommented:
Hi Rick,

I built a little function that will add one day to the date in the cell above when a value is entered into columns B, C, D, or E.  If it is the first row, then it will enter today's date.  See attached example.

Option Explicit

Private Sub Worksheet_Change(ByVal Target As Range)
    With Cells(Target.Row, 1)
        If Not Intersect(Columns("B:E"), Target) Is Nothing And Not IsDate(.Value) Then
            If Not IsDate(.Offset(-1, 0).Value) Then
                .Value = Date
            Else
                .Value = Cells(Target.Row - 1, 1).Value + 1
            End If
        End If
    End With
End Sub

Open in new window

HowToPutDate.xls
0

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
McottuliCommented:
No need for a Macro. In column A3 just put =NOW() and in Column A4 put =NOW() + 1. if i understand you, that will put current date in the A3 cell each time the document is open and A4 would be tomorrows. Unless I'm missing something in the explanation that will work.
0
ES-ComponentsAuthor Commented:
Famous,
Just Great!!!!!!
This is just what I needed. Thank you very much for that quick response.

Rick.......
0
FamousMortimerCommented:
Glad to help and thank you for the score!
0
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.