Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

word document manipulation in VB 6

cdiddycdiddy Member Posts: 1
Hey,

I want to search for a word in a word document. Then extract the whole paragraph the word appears in.

I am able to do the searching part but I cannot get this line of code to realize that the word is found:

thisDoc.Paragraphs(i).Range.Find.Found

It keeps returning false even though the word has been found and replaced.

Any help will be appreciated. Does anyone have an example of this?

cole

Comments

  • Andre YoungAndre Young USAMember Posts: 0

    _____ | http://forcoder.org | free ebooks and video tutorials about [ Swift, Go, PHP, Perl, Objective-C, Python, Ruby, PL/SQL, C++, Delphi, Visual Basic .NET, C, Assembly, JavaScript, MATLAB, R, Visual Basic, C#, Scratch, Java Prolog, Erlang, Lisp, Alice, ABAP, Dart, D, Fortran, Scheme, COBOL, Lua, LabVIEW, ML, Apex, SAS, Kotlin, Bash, Julia, Ada, Scala, F#, Crystal, VBScript, Hack, FoxPro, Awk, Logo, Rust, Transact-SQL, Clojure ] ______

Sign In or Register to comment.