Place a flag if another cell has been changed in a row

simondb

New Member
Joined
Nov 1, 2016
Messages
10
Hi,

I have a worksheet which has 10 columns and I want to add an 11th column which will contain a formula to show me if any of the 1st 10 columns have been changed. I have searched all over for something that will show me how to do this, can anyone help please

Thank you, Simon
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)
Hi, my ultimate goal is to create an updated date / time field as below
BUYER_NUMBERYEARQUARTERACCOUNT_OWNERREGION_OWNERTEAM_OWNERREGIONTEAM_NAMEACCOUNT_NAMEPORTFOLIO_STATUSUPDATEDDATETIME
192016Q4Carl SpencerRachel EmmersonGillian LomaxNorthBSMLeeds Cars 1Existing16/11/2016 12:35:25
222016Q4Louise Judge Rachel EmmersonGillian LomaxNorthBSMHaydockExisting
242016Q4Carl SpencerRachel EmmersonGillian LomaxNorthBSMLeeds Cars 1Existing
262016Q4Carl SpencerRachel EmmersonGillian LomaxNorthBSMLeeds Cars 1Existing
312016Q4Judith LangfordMonica SturleyMonica SturleyNBFDNBFDNBFD - Area 2Existing
372016Q4Gavin WalkerGavin WalkerGillian LomaxNE & ScotlandBSMWashingtonExisting
382016Q4Carl SpencerRachel EmmersonGillian LomaxNorthBSMLeeds Cars 1Existing
512016Q4Louise TaylorRachel EmmersonGillian LomaxNorthBSMKnottingleyReallocate
522016Q4Gavin WalkerGavin WalkerGillian LomaxNE & ScotlandBSMWashingtonExisting
572016Q4Gavin WalkerGavin WalkerGillian LomaxNE & ScotlandBSMWashingtonRe-engaged

<tbody>
</tbody><colgroup><col><col><col><col><col><col><col><col><col><col><col></colgroup>
 
Upvote 0
Hi, this works perfectly :)

Private Sub Worksheet_Change(ByVal Target As Excel.Range)
Dim rCell As Range
Dim rw As Long
Dim rChange As Range

On Error GoTo ErrHandler
Set rChange = Intersect(Target, Range("A:J"))
If Not rChange Is Nothing Then
Application.EnableEvents = False
For Each rCell In rChange
If rCell > "" Then
With rCell.Offset(0, 11 - ActiveCell.Column)
.Value = Now
.NumberFormat = "dd/MM/yyyy hh:mm:ss"
End With
Else
rCell.Offset(0, 11 - ActiveCell.Column).Clear
End If
Next
End If


ExitHandler:
Set rCell = Nothing
Set rChange = Nothing
Application.EnableEvents = True
Exit Sub
ErrHandler:
MsgBox Err.Description
Resume ExitHandler
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,336
Messages
6,124,331
Members
449,155
Latest member
ravioli44

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