I am trying to use a bit of code to find a value from on sheet to the master sheet.
Not sure of the correct syntax to reference the "Find" function to a specific sheet.
VBA below.
Anyone know the correct syntax?
Thanks for the assistance!
Not sure of the correct syntax to reference the "Find" function to a specific sheet.
VBA below.
VBA Code:
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim var As Variant
var = ActiveCell.Value
Cells.Find(What:=var, After:=ActiveCell, LookIn:=xlFormulas, _
LookAt:=Sheets("MASTER"), SearchOrder:=xlByColumns, SearchDirection:=xlNext, _
MatchCase:=False, SearchFormat:=False).Activate
End Sub
Anyone know the correct syntax?
Thanks for the assistance!