![]() |
|
#1
|
|||
|
|||
|
Hi,
I am trying to read the text from the attached document. I am able to read all the text starting from 'Dear..'. I am unable to read the other text like 'CurrentDate, WorkerNumber, etc.' which is in Text boxes. I tried with the following 1. DocObject.ActiveDocument.Content.Text 2. With DocObject For p = 1 To .ActiveDocument.Paragraphs.Count startRange = .ActiveDocument.Paragraphs(p).Range.Start endRange = .ActiveDocument.Paragraphs(p).Range.End Set tRange = .ActiveDocument.Range(startRange, endRange) Msgbox tRange.Text Next .Close 'close the document End With Is there a way to read text from text boxes. I wanted to read the entire text content from the document. Thanks, Suraj |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
Vertical Axis Text Issue
|
word perfect | Excel | 2 | 03-20-2013 02:23 PM |
How to save a PPT file in 'Reading View' to be opened always in 'Reading View'
|
ItzVickey | PowerPoint | 2 | 08-08-2012 09:23 AM |
Issue: Intermittant Text Enlargement
|
doix | Outlook | 3 | 01-04-2012 04:55 AM |
Text box issue
|
Dave Duncan | Word | 2 | 08-04-2011 12:25 PM |
problem reading rich text messages
|
Rkaskas | Outlook | 3 | 03-14-2011 09:40 AM |