Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Error 448 - OOps ... herewith the code

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OOPS Roger Excel Discussion (Misc queries) 0 September 6th 06 10:59 PM
oops, wrong group... sorry Srdjan Kovacevic[_5_] Excel Programming 0 October 25th 05 11:46 AM
OOPS More help with formula yourproblemslvr Excel Discussion (Misc queries) 1 August 13th 05 09:52 PM
oops!!! Deb Lang Excel Programming 1 October 30th 03 05:25 PM
OOPS Seth[_3_] Excel Programming 0 August 11th 03 02:05 PM


All times are GMT +1. The time now is 02:36 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"