tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,926
- Office Version
- 365
- 2019
- Platform
- Windows
I have this code which activates when a cell on Sheet1 is changed.
Suppose I double-clicked cell A1.
Hovering the mouse over Target shows $A$1, as expected and the code runs through to teh function, without any problems.
Here is Module1:
The query I have is, as I understand, the default property for Target is .Value.
But this fails:
even though if I hover the mouse over Target.Value, it still shows $A$1.
Why is that?
Thanks
Suppose I double-clicked cell A1.
Hovering the mouse over Target shows $A$1, as expected and the code runs through to teh function, without any problems.
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Call Module1.abc(rng:=Target)
End Sub
Here is Module1:
Code:
Option Explicit
Public Function abc(rng As Range)
' Do something
End Function
The query I have is, as I understand, the default property for Target is .Value.
But this fails:
Code:
Option Explicit
Private Sub Worksheet_Change(ByVal Target As Range)
Call Module1.abc(rng:=Target.Value)
End Sub
even though if I hover the mouse over Target.Value, it still shows $A$1.
Why is that?
Thanks