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

VBA code to populate an email header and footer



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old July 28th 06, 12:55 AM posted to microsoft.public.outlook.program_vba
marie
external usenet poster
 
Posts: 2
Default VBA code to populate an email header and footer

using VBA I need to take info. from a new email and before a user sends
the email, I need to write data to the headers and footers. Just to be
clear, I've seen a lot of postings about setting internet headers and
mail headers using CDO but I'm actually talking about the
headers/footers that you see when you go into print preview and page
setup.

I'm brand new to Outlook but I've been doing some vba scripting with
the mailitem object and have been successful, but I just can't figure
out how to populate an email page header and footer. Any help would be
appreciated.

Thanks in advance!

Ads
  #2  
Old July 28th 06, 03:21 AM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default VBA code to populate an email header and footer

Email messages don't have headers and footers. That's a feature of documents, like those in Word.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"marie" wrote in message oups.com...
using VBA I need to take info. from a new email and before a user sends
the email, I need to write data to the headers and footers. Just to be
clear, I've seen a lot of postings about setting internet headers and
mail headers using CDO but I'm actually talking about the
headers/footers that you see when you go into print preview and page
setup.

I'm brand new to Outlook but I've been doing some vba scripting with
the mailitem object and have been successful, but I just can't figure
out how to populate an email page header and footer. Any help would be
appreciated.

Thanks in advance!

 




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
Header & Footer David French Outlook - Calandaring 1 August 25th 06 05:45 PM
Word Reference header/footer files Mr. Esteban Outlook and VBA 1 May 27th 06 11:35 AM
Changing calendar header and or footer Denisa Outlook - Calandaring 0 May 10th 06 03:03 PM
VBA Code to put in Access that will send an Email with Attachments [email protected] Outlook and VBA 1 April 9th 06 05:30 PM
How to add a bitmap footer to each outgoing email programmatically Herve cadieu Outlook and VBA 3 March 13th 06 05:39 PM


All times are GMT +1. The time now is 12:26 PM.


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