![]() |
|
#4
|
||||
|
||||
|
Word's object model is quite logical, actually. Your code defines a range [via Set p = .Paragraphs.Add()], which can't be outside the range defined by the document's final paragraph break (otherwise it wouldn't be part of the document), so it has to occur before that, then replaces whatever's in that range with something else [via p.Range.Text = "par3"]. You can confirm that's what happening be changing 'p.Range.Text = "par3"' to 'p.Range.Font.ColorIndex = wdRed'. I suspect the problem you're having is a conceptual one, rather than anything to do with Word's object model.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Confusion over licences | Nez | Office | 5 | 02-03-2014 03:29 AM |
Word template confusion
|
portia | Word | 8 | 11-29-2011 02:08 PM |
Email confusion
|
chris29 | Outlook | 1 | 08-24-2011 01:22 PM |
Multiple referencing confusion
|
ridge1988 | Word | 2 | 03-31-2011 07:42 PM |
| Windows Update confusion | Quicksilver | Office | 0 | 06-24-2010 12:33 PM |