Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

VS 2005 Tools for Office Find error

Posted on 2007-11-14
3
148 Views
Last Modified: 2013-11-26
Hi

I am getting an error on xlNext in the following code
rFound = oWb.Range(Detail).Find(oWhat, rngFoundInst, oLookin, oLookat, oSearchOrder, xlNext, False, False)
0
Comment
Question by:murbro
  • 2
3 Comments
 
LVL 47

Expert Comment

by:Wayne Taylor (webtubbs)
ID: 20278686
What's the error? I can see a number of things that could be the problem, but then again, they may not.
0
 

Author Comment

by:murbro
ID: 20278742
xlNext not declared
0
 
LVL 47

Accepted Solution

by:
Wayne Taylor (webtubbs) earned 500 total points
ID: 20278763
Try either of these....

rFound = oWb.Range(Detail).Find(oWhat, rngFoundInst, oLookin, oLookat, oSearchOrder, Excel.XlSearchDirection.xlNext, False, False)

rFound = oWb.Range(Detail).Find(oWhat, rngFoundInst, oLookin, oLookat, oSearchOrder, 1, False, False)
0

Featured Post

Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question