![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
![]()
I have some customization that inserts a file path into the footer of a
document. The text however runs off the page when the string (file path) is too long. Is there a way to automatically force the footer to wrap the text? Thanks -- Sierk |
#2
|
|||
|
|||
![]()
Footer where? Is this an Outlook item of some type? What version of Outlook?
If this is purely a Word question then please post it in a Word group. This is an Outlook group. -- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Professional Programming Outlook 2007. Reminder Manager, Extended Reminders, Attachment Options. http://www.slovaktech.com/products.htm "Sierk" wrote in message ... I have some customization that inserts a file path into the footer of a document. The text however runs off the page when the string (file path) is too long. Is there a way to automatically force the footer to wrap the text? Thanks -- Sierk |
#3
|
|||
|
|||
![]()
So I stumbled upon the answer though I have no idea what it does or where it
came from. The line of code that made it al work was: WordBasic.ViewFooterOnly. The code that inserts the text in the footer is as follows: 'WordBasic.ViewFooterOnly causes the string to be 'inserted properly with automatic line wrapping. WordBasic.ViewFooterOnly 'Insert actual file path string. Selection.TypeText Text:=sFileText 'Add filename field Selection.Fields.Add Range:=Selection.Range, Type:=wdFieldEmpty, Text:= _ "FILENAME ", PreserveFormatting:=True It does use a selection created in earlier code and inserts a file path string "sFileText" that is defined in another sub. -- Sierk "Sierk" wrote: I have some customization that inserts a file path into the footer of a document. The text however runs off the page when the string (file path) is too long. Is there a way to automatically force the footer to wrap the text? Thanks -- Sierk |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word wrap text in Calendar | Paolo C. | Outlook - Calandaring | 0 | June 5th 08 09:44 AM |
change the cache mode path (.ost file path) | bln-ami | Outlook - Installation | 0 | July 18th 06 08:45 AM |
How do a set word wrap in calendar appointments? | Trafficdan | Outlook - Calandaring | 0 | July 14th 06 02:44 AM |
Word Reference header/footer files | Mr. Esteban | Outlook and VBA | 1 | May 27th 06 11:35 AM |
Receiving messages without word wrap in OE6 | Bill Hunt | Outlook Express | 1 | March 16th 06 05:26 AM |