PC Review


Reply
Thread Tools Rate Thread

Differences between Excel 2003 and Excel 2000

 
 
JRB
Guest
Posts: n/a
 
      24th Nov 2006
Are there any significant differences between the vba Find Method in the
2003 and 200 versions of Excel

The reason I ask is that I have some code that works in version 2003 and yet
doesn't work in my friends version which is 2000


Regards
and TIA


 
Reply With Quote
 
 
 
 
Bob Phillips
Guest
Posts: n/a
 
      24th Nov 2006
Find will not work in 2000 if included in a function called from a worksheet
formula.

--

HTH

Bob Phillips

(replace xxxx in the email address with gmail if mailing direct)

"JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
news:acKdnWKY5O-(E-Mail Removed)...
> Are there any significant differences between the vba Find Method in the
> 2003 and 200 versions of Excel
>
> The reason I ask is that I have some code that works in version 2003 and

yet
> doesn't work in my friends version which is 2000
>
>
> Regards
> and TIA
>
>



 
Reply With Quote
 
JRB
Guest
Posts: n/a
 
      24th Nov 2006
Thanks Bob - code is called from a button on a user form as follows:

...................
RegNo = InputBox("Enter the Original Reg No or Present Reg No", Title)

On Error Resume Next
Application.ScreenUpdating = False
With Sheets("Register")
.Activate
.Columns("C").Find(What:=RegNo, After:=.Cells(1, 3),
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
_
MatchCase:=False, SearchFormat:=False).Activate
If Err = "91" Then
Response = MsgBox("Registration Not Found", , Title)
ScrollBar1.Value = ScrollBar1.Min
Exit Sub
End If
End With
On Error GoTo 0
.............................

Does it look ok to you ?

Regards


"Bob Phillips" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
> Find will not work in 2000 if included in a function called from a
> worksheet
> formula.
>
> --
>
> HTH
>
> Bob Phillips
>
> (replace xxxx in the email address with gmail if mailing direct)
>
> "JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
> news:acKdnWKY5O-(E-Mail Removed)...
>> Are there any significant differences between the vba Find Method in the
>> 2003 and 200 versions of Excel
>>
>> The reason I ask is that I have some code that works in version 2003 and

> yet
>> doesn't work in my friends version which is 2000
>>
>>
>> Regards
>> and TIA
>>
>>

>
>



 
Reply With Quote
 
=?Utf-8?B?SkxHV2hpeg==?=
Guest
Posts: n/a
 
      26th Nov 2006
I think this will workalthough it is untested:
RegNo = InputBox("Enter the Original Reg No or Present Reg No", Title)

On Error Resume Next
Application.ScreenUpdating = False
With Sheets("Register")
.Activate
.Columns("C")
Set C = .Find(What:=RegNo, After:=.Cells(1, 3),
LookIn:=xlFormulas, _
LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
_
MatchCase:=False, SearchFormat:=False).Activate
If C <> Empty Then
MsgBox "Registration Number " & RegNo & " Found at " & C.Address
Else
MsgBox "Registration Number not found"
End If
If Err = "91" Then
Response = MsgBox("Registration Not Found", , Title)
ScrollBar1.Value = ScrollBar1.Min
Exit Sub
End If
End With
On Error GoTo 0


"JRB @eclipse.co.uk>" wrote:

> Thanks Bob - code is called from a button on a user form as follows:
>
> ...................
> RegNo = InputBox("Enter the Original Reg No or Present Reg No", Title)
>
> On Error Resume Next
> Application.ScreenUpdating = False
> With Sheets("Register")
> .Activate
> .Columns("C").Find(What:=RegNo, After:=.Cells(1, 3),
> LookIn:=xlFormulas, _
> LookAt:=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext,
> _
> MatchCase:=False, SearchFormat:=False).Activate
> If Err = "91" Then
> Response = MsgBox("Registration Not Found", , Title)
> ScrollBar1.Value = ScrollBar1.Min
> Exit Sub
> End If
> End With
> On Error GoTo 0
> .............................
>
> Does it look ok to you ?
>
> Regards
>
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
> > Find will not work in 2000 if included in a function called from a
> > worksheet
> > formula.
> >
> > --
> >
> > HTH
> >
> > Bob Phillips
> >
> > (replace xxxx in the email address with gmail if mailing direct)
> >
> > "JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
> > news:acKdnWKY5O-(E-Mail Removed)...
> >> Are there any significant differences between the vba Find Method in the
> >> 2003 and 200 versions of Excel
> >>
> >> The reason I ask is that I have some code that works in version 2003 and

> > yet
> >> doesn't work in my friends version which is 2000
> >>
> >>
> >> Regards
> >> and TIA
> >>
> >>

> >
> >

>
>
>

 
Reply With Quote
 
NickHK
Guest
Posts: n/a
 
      27th Nov 2006
You will find that SearchFormat is not supported as an argument in the 2K
version.

NickHK

"JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
news:MpGdnb1455UC-(E-Mail Removed)...
> Thanks Bob - code is called from a button on a user form as follows:
>
> ..................
> RegNo = InputBox("Enter the Original Reg No or Present Reg No", Title)
>
> On Error Resume Next
> Application.ScreenUpdating = False
> With Sheets("Register")
> .Activate
> .Columns("C").Find(What:=RegNo, After:=.Cells(1, 3),
> LookIn:=xlFormulas, _
> LookAt:=xlPart, SearchOrder:=xlByRows,

SearchDirection:=xlNext,
> _
> MatchCase:=False, SearchFormat:=False).Activate
> If Err = "91" Then
> Response = MsgBox("Registration Not Found", , Title)
> ScrollBar1.Value = ScrollBar1.Min
> Exit Sub
> End If
> End With
> On Error GoTo 0
> ............................
>
> Does it look ok to you ?
>
> Regards
>
>
> "Bob Phillips" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
> > Find will not work in 2000 if included in a function called from a
> > worksheet
> > formula.
> >
> > --
> >
> > HTH
> >
> > Bob Phillips
> >
> > (replace xxxx in the email address with gmail if mailing direct)
> >
> > "JRB @eclipse.co.uk>" <sa3214<nospam> wrote in message
> > news:acKdnWKY5O-(E-Mail Removed)...
> >> Are there any significant differences between the vba Find Method in

the
> >> 2003 and 200 versions of Excel
> >>
> >> The reason I ask is that I have some code that works in version 2003

and
> > yet
> >> doesn't work in my friends version which is 2000
> >>
> >>
> >> Regards
> >> and TIA
> >>
> >>

> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
What are the differences between excel 2000 & excel 2007? Lee Microsoft Excel Misc 1 6th Nov 2008 10:38 PM
can you summarize differences between Excel 2000, 2003 & 2007? LSL Microsoft Excel Misc 2 7th Aug 2008 03:39 PM
Differences between Excel 2000 and 2003? Per-Anders Microsoft Excel Discussion 3 31st Jan 2008 12:47 PM
opening word doc from excel 2000 and 2003 differences Colin C Microsoft Excel Misc 0 11th Dec 2005 08:06 PM
What are the differences between Excel 2000 and Excel 2002 =?Utf-8?B?Y2Vyb29yaw==?= Microsoft Excel New Users 2 22nd Jan 2005 10:49 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:57 PM.