![]() |
#4
|
||||
|
||||
![]()
OK, with your code, you're formatting the whole document with 12pt bold text, centred paragraphs. Is that what you really want?
It is always better to use appropriately-defined paragraph Styles for managing document formatting, rather than overriding an existing Style with the format you want. FWIW, to insert another paragraph is as simple as adding another line with: .InsertAfter vbCr & "My New paragraph" Then, of course, you'd want to format the new paragraph, for which you could use code like: .Paragraphs.Last.Range.Style = "Some Style"
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
range, vba word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tinfanide | Excel Programming | 2 | 06-09-2012 10:19 AM |
![]() |
g48dd | Excel Programming | 7 | 06-20-2011 06:34 AM |
Problem: object library invalid or contains references to object definitions | aligahk06 | Office | 0 | 08-19-2010 12:29 PM |
Could not load this object as this object is not present in your computer | k.gaurav | Office | 0 | 08-17-2009 09:57 PM |
Categories question & replying with attachment question | glitzymama | Outlook | 0 | 03-15-2006 09:32 AM |