AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,099
- Office Version
- 2019
- 2010
- Platform
- Windows
In Module1
Public iRange As Range
Debug.print iRange(Target.Row, "C")
Target.Row is 5534.
I expect to see the value of Col C at row 5534 but instead it shows the Contents of "C" at row 11070
Excel must be right and I'm wrong, but how ?
Public iRange As Range
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If Target.Row > 1 Then
Cancel = True
Set iRange = Range("A" & Target.Row & ":CV" & Target.Row)
end if
Debug.print iRange(Target.Row, "C")
Target.Row is 5534.
I expect to see the value of Col C at row 5534 but instead it shows the Contents of "C" at row 11070
Excel must be right and I'm wrong, but how ?