|
-
May 15th, 2019, 08:25 AM
#5
Thread Starter
Fanatic Member
Re: Specifying time-out for objects?
I should have stated the entire code. I'm trying to get the text of a Word document like this:
Dim nWord As Word.Application
Set nWord = CreateObject("Word.Application")
nWord.DisplayAlerts = 0 'wdAlertsNone
nWord.Documents.Open uFile, False, True, , , , , , , , , , True
nWord.Selection.WholeStory
GetText = nWord.Selection.Range.Text'return the text of the Word document
nWord.ActiveDocument.Close False
nWord.Quit False
Set nWord = Nothing
Can you please tell me in which way getting nDoc separately would help me?
Tags for this Thread
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
|