|
-
Jan 24th, 2003, 09:52 AM
#1
Thread Starter
Junior Member
Retrieving text from MS Word document
I need to retrieve all text from MS Word document where word style is Heading 1, and show that on text box. Anyone know how to recognize what word style is used on some place in Word Document?
I know how to open document, or find a text, but how to find which word style is used. I try something like:
If objWord.ActiveDocument.Paragraph.Item(i).Style = "Normal" Then ....
but doesnt work.
I get error:
Additional information: Operator is not valid for type 'Style' and string "Normal".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|