I really need your help.
Basically I have 2 sheets that I really am concerned for my project as pictured below.
I am looking for VBA code that allows me to:
Any help would be greatly appreciated. I have tried a couple of things such as making hyperlink to the content within the range but it still doesn't work at all and fails too many times.
Thanks
Rendi
The following VBA code should work as you described:
Option Explicit
Function InRange(Range1 As Range, Range2 As Range) As Boolean
' returns True if Range1 is within Range2
Dim InterSectRange As Range
Set InterSectRange = Application.Intersect(Range1, Range2)
InRange = Not InterSectRange Is Nothing
Set InterSectRange = Nothing
End Function
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
If InRange(ActiveCell, Worksheets("MUFG Client").Range("B3:B300")) Then
Selection.Copy Worksheets("MUFG Matched").Range("d4")
End If
End Sub
Make sure that you place this code into the worksheet code area of MUFG Client, since that is where you will be double clicking.