![]() |
#12
|
|||
|
|||
![]()
Solved though i use a command button with the embedded macro :
ok so i searched other forum and came up with answer. Below is the code attached to a command button, Sub FindCellContent() Dim Sh As Worksheet, foundCell As Range 'Search for CellContent in all Visible Worksheets For Each Sh In ActiveWorkbook.Worksheets If Sh.Visible = xlSheetVisible Then 'If you want to ignore the active sheet unmark the below line 'If ActiveSheet.Name <> Sh.Name Then Set foundCell = Sh.Cells.Find(What:=ActiveCell, _ After:=ActiveCell, LookIn:=xlFormulas, LookAt:=xlPart, _ SearchOrder:=xlByRows, SearchDirection:=xlNext) If Not foundCell Is Nothing Then If foundCell.Address(External:=True) <> _ ActiveCell.Address(External:=True) Then _ Application.Goto foundCell: Exit For End If '/If you want to ignore the active sheet 'End If End If Next If foundCell Is Nothing Then _ MsgBox ActiveCell & " not found in this workbook" End Sub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ld2x07 | Word | 5 | 10-10-2014 05:13 AM |
Transferring info from 1column on sheet2 to sheet1 | rogcar75 | Excel | 22 | 08-26-2014 05:07 PM |
IE automation: How to auto-click the first link on the search query page? | tinfanide | Excel Programming | 0 | 05-30-2012 11:02 PM |
![]() |
KIM SOLIS | Excel | 6 | 10-30-2011 11:14 PM |
![]() |
aligahk06 | Excel | 1 | 04-26-2010 11:22 PM |