![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I was wondering if anyone could help me? Is it possible to save a word document containing a word that is within the document itself that is always on row 7 using VBA? Anyones input would be very much appriciated. Many thanks, Rochelle |
#2
|
||||
|
||||
![]()
Hi Rochelle,
Lines & rows have no particular meaning in Word, except for table rows. As a wysiwyg word processor, what's on a line on your setup could be on a different line on mine. You need to be more specific about how this line is to be located, and where on the line the string you're interested in is to be found. For example, it might be in the 3rd physical paragraph on the page, where a paragraph is defined by what you'd ordinarily see as a ¶ symbol when the formatting display is on. And within that paragraph, you might have manual line breaks, indicated by the ↵ symbol. Finally, the string might be the 4th word on the line. Remember, a macro can't see what's on the page; it has to be given directions.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
omahadivision | Excel Programming | 12 | 11-23-2013 12:10 PM |
Word delete page if string is not contained | wolfking333 | Word VBA | 0 | 06-23-2013 10:02 AM |
![]() |
VBNation | Word VBA | 2 | 02-08-2013 07:14 AM |
![]() |
Dom37 | Word VBA | 2 | 10-31-2011 03:28 AM |
Merging a Word doc with VB functions contained | adamwbrown | Word | 0 | 08-13-2008 06:10 AM |