A Microsoft Outlook email forum. Outlook Banter

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.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

How do I get a very long file path to wrap in a footer (MS Word 20



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 13th 09, 09:26 PM posted to microsoft.public.outlook.program_vba
Sierk
external usenet poster
 
Posts: 12
Default How do I get a very long file path to wrap in a footer (MS Word 20

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  
Old January 14th 09, 03:33 PM posted to microsoft.public.outlook.program_vba
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default How do I get a very long file path to wrap in a footer (MS Word 20

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  
Old January 16th 09, 07:36 PM posted to microsoft.public.outlook.program_vba
Sierk
external usenet poster
 
Posts: 12
Default How do I get a very long file path to wrap in a footer (MS Word 20

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
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


All times are GMT +1. The time now is 04:30 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.