Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I need help with some macro programming to find the contents of a specific
cell in the rest of the workbook. Any help? |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Sub FindData()
Set Data = Sheets("Sheet1").Range("A1") DataAddr = Data.Address(external:=True) For Each sht In Sheets Set c = sht.Cells.Find(what:=Data.Value, _ LookIn:=xlValues, lookat:=xlWhole) If Not c Is Nothing Then FirstAddr = c.Address Do If c.Address(external:=True) < DataAddr Then MsgBox ("Data Found at : " & c.Address(external:=True)) End If Set c = sht.Cells.FindNext(after:=c) Loop While Not c Is Nothing And _ c.Address < FirstAddr End If Next sht End Sub "gmc" wrote: I need help with some macro programming to find the contents of a specific cell in the rest of the workbook. Any help? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy contents of Find (Find and Replace) | Excel Discussion (Misc queries) | |||
Find an value and clear contents of that row | Excel Programming | |||
Find contents of the last cell in a row | Excel Worksheet Functions | |||
Find Contents of Cell (Macro) - Help me! | Excel Programming | |||
Find and Replace Hyperlink Contents | Excel Discussion (Misc queries) |