How buggy is Excel.Find?

D

David Thielen

Hi;

I think I've found another bug. Please get the xlsx file in
http://www.windwardreports.com/temp/FindBug.zip and do a Find like:
rtn = rng.Find("<wr:", startAfter, XlFindLookIn.xlValues, XlLookAt.xlPart,
XlSearchOrder.xlByRows, XlSearchDirection.xlNext, false, false, Type.Missing);

where text is rng and startAfter are both the single cell [2,4] - rtn comes
back as the cell [3,1] - what is going on here?

If this is another bug in Find then is there a way to get a list of all the
bugs in find - or is it so buggy that I should just walk the cells myself and
read the text from each? (Yes I am frustrated at the number of bugs that I
have hit in find - sorry.)

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm
 
J

Jialiang Ge [MSFT]

Hello Dave,
where text is rng and startAfter are both the single cell [2,4] - rtn
comes back as the cell [3,1] - what is going on here?
Do you mean that the search range (rng) is composed of only one cell? And
both rng and StartAfter refers to that single cell?

Would you help to check if it is the same problem as the post
"Excel.Range.Find() looks outside the range for XlSearchDirection.x" that
you posted at 2007-12-07?
http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.publi
c.office.developer.com.add_ins&mid=0c7b31c7-04a6-49ee-8260-9bfbb3f54c5a&sloc
=en-us

In that post, I explained the known issue of Range.Find as:
"Range.Find method finds the cells outside the specified range when the
range is composed of one cell in Excel Interop. The workaround is to do the
find with custom code when there is only one cell."

I am sorry again for the inconveniences caused by it. If you feel it
critical, please contact Microsoft Product Support directly. Since it's a
known issue, the support incident will be free of charge.

Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 
D

David Thielen

I think that is it - thanks.

--
thanks - dave
david_at_windward_dot_net
http://www.windwardreports.com

Cubicle Wars - http://www.windwardreports.com/film.htm




Jialiang Ge said:
Hello Dave,
where text is rng and startAfter are both the single cell [2,4] - rtn
comes back as the cell [3,1] - what is going on here?
Do you mean that the search range (rng) is composed of only one cell? And
both rng and StartAfter refers to that single cell?

Would you help to check if it is the same problem as the post
"Excel.Range.Find() looks outside the range for XlSearchDirection.x" that
you posted at 2007-12-07?
http://msdn.microsoft.com/newsgroups/managed/default.aspx?dg=microsoft.publi
c.office.developer.com.add_ins&mid=0c7b31c7-04a6-49ee-8260-9bfbb3f54c5a&sloc
=en-us

In that post, I explained the known issue of Range.Find as:
"Range.Find method finds the cells outside the specified range when the
range is composed of one cell in Excel Interop. The workaround is to do the
find with custom code when there is only one cell."

I am sorry again for the inconveniences caused by it. If you feel it
critical, please contact Microsoft Product Support directly. Since it's a
known issue, the support incident will be free of charge.

Jialiang Ge ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
For MSDN subscribers whose posts are left unanswered, please check this
document: http://blogs.msdn.com/msdnts/pages/postingAlias.aspx

Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications. If you are using Outlook Express/Windows Mail, please make sure
you clear the check box "Tools/Options/Read: Get 300 headers at a time" to
see your reply promptly.

Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top