By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,327 Members | 1,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,327 IT Pros & Developers. It's quick & easy.

Using the find object in Word 11 COM object

P: n/a
I'm trying to develop a dotnet application that uses the Word 11 com object.
Whenever I try to use the find object I get a blow out.

In the code fragment below executingthe ClearFormating method I blow out
with "An unhandled exception of type 'System.ArgumentException' occurred"

Dim myRange As Word.Range = oWord.ActiveDocument.Content
With myRange.Find



..Text = "hello"

..Replacement.Text = "goodbye"


End With

Has anyone been able to use the Word 11 find object in a VB dotNet program?


Jeff Morrison
Nov 21 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
Take a look at this text file:

Nov 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.