Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Drop the searchformat stuff. It was added in xl2002.
Jim wrote: Sub BasicFindReg() Dim Title As String Dim RegNo As String Title = "Test Macro to Find Reg Number" RegNo = InputBox("Enter the Original Reg No or Present Reg No", Title) On Error Resume Next With Columns("C:D") .Find(What:=RegNo, After:=Range("C1"), LookIn:=xlFormulas, _ LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, _ MatchCase:=False, SearchFormat:=False).Activate End With If Error "0" Then Response = MsgBox("Error - " & Err, vbOK, Title) End If End Sub -- Dave Peterson |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
OOPS | Excel Discussion (Misc queries) | |||
oops, wrong group... sorry | Excel Programming | |||
OOPS More help with formula | Excel Discussion (Misc queries) | |||
oops!!! | Excel Programming | |||
OOPS | Excel Programming |