ClimoC
Well-known Member
- Joined
- Aug 21, 2009
- Messages
- 584
Hey everyone.
This one is a little tricky
in cell B, data could be entered but isn't always.
BUT - If someone were to type in a cell in col B, then I need today's date to be concatenated on to the end of whatever they type in there. If there is nothing typed, I'd like it to stay blank completely. And just to make it tricky, it's set up as a watchrange. Please someone see if they can help me modify (or rewrite!) the below code to do this please.
Bonus points if we can have the date that is concatenated be a different colour from the text! (text = white, date = red)
P.S - Col A is blank, but cols C - BX are all full of various tables
Thanks!
This one is a little tricky
in cell B, data could be entered but isn't always.
BUT - If someone were to type in a cell in col B, then I need today's date to be concatenated on to the end of whatever they type in there. If there is nothing typed, I'd like it to stay blank completely. And just to make it tricky, it's set up as a watchrange. Please someone see if they can help me modify (or rewrite!) the below code to do this please.
Bonus points if we can have the date that is concatenated be a different colour from the text! (text = white, date = red)
P.S - Col A is blank, but cols C - BX are all full of various tables
Code:
If Target.Column = 2 Then
Dim b As Range
Dim z As Range
Set b = Range("Schedule!B6:B500")
For Each z In b
If z <> "" Then
With z
.Value = z.Value & "B2"
End With
End If
Next
End If
End Sub
Thanks!