Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have the following VBA Code in the Active Worksheet to search for a value
(cell J3) in column( D) then activate the cell if found. I would like to modify the code to search for the value in cell J3 in all worksheets in the workbook, then have a prompt to activate that cell in the sheet it is located or do another search for the same value. I realize I can do this by the Find function but this would work much better for my application. Thank you Private Sub Worksheet_Change(ByVal Target As Range) If Target.Cells.Count 1 Then Exit Sub If Not Application.Intersect(Range("J3"), Target) Is Nothing Then Dim FoundCell As Range With ActiveSheet Set FoundCell = .Range("D:D").Find(what:=Range("J3").Value) If FoundCell Is Nothing Then MsgBox "EIN not found. Do not include the dashes in your search." Else FoundCell.Activate End If End With End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to find a workbook name? | Excel Programming | |||
find in workbook | Excel Programming | |||
Find cell in Excel2000 workbook with link from another workbook? | Excel Discussion (Misc queries) | |||
set cell in one workbook to find in another workbook | Excel Programming | |||
Open a specific workbook...find value from other open workbook and then insert cells values in cell next to it. | Excel Programming |