Private Sub Worksheet_Change(ByVal Target As Range)
OgColor = Target.Interior.ColorIndex
Target.Interior.ColorIndex = 5
Application.Wait (Now + TimeValue("0:00:01"))
Target.Interior.ColorIndex = og
End Sub
That is a nice answer. It works for me. I have never use Application.wait.Hi Dikken
This is 1 second
Change the 5 to another color index you like
Please note, this must go in the sheet module you re wanting to affect: double clicking on Sheet1(Sheet1)
Code:Private Sub Worksheet_Change(ByVal Target As Range) OgColor = Target.Interior.ColorIndex Target.Interior.ColorIndex = 5 Application.Wait (Now + TimeValue("0:00:01")) Target.Interior.ColorIndex = og End Sub
Hi Fluff@EFANYoutube
There's a typo in your code when you reset the colour back to it's original state.
Private Sub Worksheet_Change(ByVal Target As Range)
OgColor = Target.Interior.ColorIndex
Target.Interior.ColorIndex = 5
Application.Wait (Now + TimeValue("0:00:01"))
Target.Interior.ColorIndex = OgColor
End Sub
Thank you so much for the reply.Hi Fluff
Thanks for the pickup
Code:Private Sub Worksheet_Change(ByVal Target As Range) OgColor = Target.Interior.ColorIndex Target.Interior.ColorIndex = 5 Application.Wait (Now + TimeValue("0:00:01")) Target.Interior.ColorIndex = OgColor End Sub
Yes..Hmm. That little nugget was not in your original post but if it is not triggering, it means that you 3rd party application may need to trigger it
I don't have any experence with DDE so i can't help sorry but I get what your tiring to do and it's going to look pretty cool when you get it working