This works fine.Code:Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("C8").Value = Range("B3").Value + Range("E3").Value End Sub
Thank you for the support and guidance!
This works fine.Code:Private Sub Worksheet_SelectionChange(ByVal Target As Range) Range("C8").Value = Range("B3").Value + Range("E3").Value End Sub
Thank you for the support and guidance!
Last edited by DocAElstein; 08-28-2020 at 03:24 PM. Reason: Code Tags added - use # icon in editor window to get them
That macro is OK, if it works for you. It will recalculate everytime you select any cell anywhere in the worksheet. So it is a little inefficient, The macro will be run many times when it is not needed to run.
This might be a bit better,
But you can use the one you preferCode:Private Sub Worksheet_Change(ByVal Target As Range) If Target.Address = "$B$3" Or Target.Address = "$E$3" Then Let Application.EnableEvents = False Let Range("C8").Value = Range("B3").Value + Range("E3").Value Let Application.EnableEvents = True Else End If End Sub
Last edited by DocAElstein; 08-26-2020 at 10:29 PM.
….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
If you are my enemy, we will try to kick the fucking shit out of you…..
Winston Churchill, 1939
Save your Forum..._
KILL A MODERATOR!!
This code is really better and works nicely. This is what I wanted.
The code may be a one minute play for some expert like you, but for mine, it may take several minutes to understand and several hours to build such codes independently.
That's the reason I have to take help every time.
Thank you for your time and effort for me!!
Bookmarks