Dear VBA Gurus
Years ago I saw a post on this forum wherein if you click within a particular range of cells, the value in the selected cell is produced in a destination cell. For that I used following code:
>>> use code - tags <<<
"Input" is name of a range if cells and "Output" is a cell name where I am obtaining the output as text in the selected cell.
The above code is running well. However, it runs only when I run the macro manually. All I need is to ensure that as soon as I click on one of the input cells, the value in the selected cell should be reproduced in the output cell without manually running the code. Appreciate someone's help.
Cheers
Years ago I saw a post on this forum wherein if you click within a particular range of cells, the value in the selected cell is produced in a destination cell. For that I used following code:
>>> use code - tags <<<
Code:
Private Sub Macro1()
If Not Application.Intersect(ActiveCell, [Input]) Is Nothing Then
[Output] = ActiveCell.Value
End If
End Sub
The above code is running well. However, it runs only when I run the macro manually. All I need is to ensure that as soon as I click on one of the input cells, the value in the selected cell should be reproduced in the output cell without manually running the code. Appreciate someone's help.
Cheers
Last edited by a moderator: