
Originally Posted by
ResulG
Hi,
I'll settle with Bryan's answer. It fulfills ma need.
However I was just hunting for any other methods of employing the same process.
Also, is it possible to use the same method again?
Obviously i have to use the countries twice, as to converting from and to.
I tried to use the same code but it didnt work? I changed it around and played with it but couldnt get it to work!
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Excel.Range, Cancel As Boolean)
Dim iColumn As Integer, iRow As Integer
With ActiveSheet
iColumn = Target.Column
If iColumn = 1 Then
iRow = Target.Row
Cells(2, 2) = Cells(iRow, 1)
End If
End With
End Sub
Private Sub Worksheet_BeforeDoubleClick1(ByVal Target As Excel.Range, Cancel As Boolean)
Dim tColumn As Integer, tRow As Integer
With ActiveSheet
tColumn = Target.Column
If tColumn = 3 Then
tRow = Target.Row
Cells(4, 2) = Cells(tRow, 3)
End If
End With
End Sub
Any help will be appriciated
Thanks
ResulG
HI,
This is an Event trigger, you can have only one.
You can test for column 1 AND then test column 3 and perform different actions.
If iColumn = 1 Then
iRow = Target.Row
Cells(2, 2) = Cells(iRow, 1)
ElseIf iColumn = 3 Then
iRow = Target.Row
Cells(4, 2) = Cells(iRow, 3)
End If
---
Bookmarks