Today date

ali zaib

Active Member
Joined
Nov 21, 2010
Messages
412
i want that when i enter a remarks in remarks column in next column show today date not change at next day
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Hi

Right-click on the sheet name at the bottom of the screen and select View Code. Paste the following in there:

Rich (BB code):
Private Sub Worksheet_Change(ByVal Target As Range)
Dim rng As Range, cell As Range
Set rng = Intersect(Target, Range("A:A"))  'amend Range("A:A") to be whichever column holds your comments

If Not rng Is Nothing Then
    Application.EnableEvents = False
    For Each cell In rng
        If Not IsEmpty(cell.Value) Then
            cell.Offset(, 1).Value = Date
        Else
            cell.Offset(, 1).ClearContents
        End If
    Next cell
    Application.EnableEvents = True
End If
End Sub

Amend the range in red to be whichever column holds your remarks.
 
Upvote 0

Forum statistics

Threads
1,224,570
Messages
6,179,610
Members
452,931
Latest member
The Monk

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top