ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   How to change an other cell's value? (https://www.excelbanter.com/excel-discussion-misc-queries/68704-how-change-other-cells-value.html)

Nirel

How to change an other cell's value?
 
This is the situation: cell A2 is blank. Should it change to any value, I
want cell A3 to get a certain value, but I don't want cell A3 to contain any
formula.
Is there any solution?

Bob Phillips

How to change an other cell's value?
 
VBA?

Private Sub Worksheet_Change(ByRef Target As Range)
If Not Intersect(Range("A2"),Target) Is Nothing Then
If Target.Value < "" Then
Range("A3").Value = "my value"
End If
End If
End Sub

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"Nirel" wrote in message
...
This is the situation: cell A2 is blank. Should it change to any value, I
want cell A3 to get a certain value, but I don't want cell A3 to contain

any
formula.
Is there any solution?





All times are GMT +1. The time now is 07:15 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com