Ramadan
Board Regular
- Joined
- Jan 20, 2024
- Messages
- 136
- Office Version
- 2021
- Platform
- Windows
I have a worksheet with a long Vba code to run many rules in the sheet - One of these rules is to insert today() date in cell "D11" when any edit happen in cells ("E5 or G5")- the problem is that I face a lot of delay in this rule to apply after many times try and sometimes it run after clearing the cell D11 and add any new entry to E5 or G5
this is the part of code coving this rule - any suggestions please to make it run normally
this is the part of code coving this rule - any suggestions please to make it run normally
VBA Code:
[/
For r = LBound(a) To UBound(a)
If Target.Address(0, 0) = a(r, 2) Then 'consider using If Not Intersect(Target, Range("E5,G5") or Range("E5:G5")) Is Nothing Then...with other changes in the code if you want to change multiple conditions in one swoop
ws.Range("D11").NumberFormat = "[$-,200]yyyy\/m\/d;@"
ws.Range("D11").Value = ThisWorkbook.BuiltinDocumentProperties("Last Save time")]