Does anyone know if it is possible to link pages in multiple workbooks. I want to be able to click on a upc code in a cell and have it take me to the same upc code in a separate workbook. Does anyone know how to do this? Basically you would have to search by the upc code. I have done this in in different pages of an excel workbook, but never in two separate workbooks.
I have provided the code I used below. If anyone knows a way to modify it to work for two separate workbooks please let me know. Thanks!
Option Explicit
Public Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Found As Range
Set Found = Worksheets("Sheet1").Cells.Find(what:=Target.Value, LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then
Cancel = True
Else
Cancel = False
Worksheets("Sheet1").Activate
Found.Select
End If
End Sub
I have provided the code I used below. If anyone knows a way to modify it to work for two separate workbooks please let me know. Thanks!
Option Explicit
Public Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean)
Dim Found As Range
Set Found = Worksheets("Sheet1").Cells.Find(what:=Target.Value, LookIn:=xlValues, lookat:=xlWhole)
If Found Is Nothing Then
Cancel = True
Else
Cancel = False
Worksheets("Sheet1").Activate
Found.Select
End If
End Sub