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

using briefpapier in vba code



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old November 25th 06, 06:15 PM posted to microsoft.public.outlook.program_vba
Hugo Lefebvre
external usenet poster
 
Posts: 1
Default using briefpapier in vba code

I use the following vba-code (in Microsoft Access) for sending mail in
Outlook:

Set myOlapp = CreateObject("Outlook.Application")
Set myNameSpace = myOlapp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderDrafts)
Set myItem = myOlapp.CreateItem(olMailItem)
...

Is it possible to choose a 'briefpapier' in the vba-code? I don't know how
to translate 'briefpapier' (= dutch) in English. You can activate it in
Microsoft Outlook 2003 by choosing Tools, then Options and then the third
tab. It is beside of 'Fonts'. It is something like a template you can use
for new e-mail: you can choose font and background.


Ads
  #2  
Old November 27th 06, 07:05 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default using briefpapier in vba code



You can "click" the proper commandbar button by code. The commandbar popup
"New e-mail with" has the id=31146. The iterate through its childs and find
the letterpaper by its caption.

--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.VBOffice.net --


Am Sat, 25 Nov 2006 18:15:41 +0100 schrieb Hugo Lefebv

I use the following vba-code (in Microsoft Access) for sending mail in
Outlook:

Set myOlapp = CreateObject("Outlook.Application")
Set myNameSpace = myOlapp.GetNamespace("MAPI")
Set myFolder = myNameSpace.GetDefaultFolder(olFolderDrafts)
Set myItem = myOlapp.CreateItem(olMailItem)
...

Is it possible to choose a 'briefpapier' in the vba-code? I don't know how
to translate 'briefpapier' (= dutch) in English. You can activate it in
Microsoft Outlook 2003 by choosing Tools, then Options and then the third
tab. It is beside of 'Fonts'. It is something like a template you can use
for new e-mail: you can choose font and background.

 




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
How to recover VBA code? Vaughan Outlook and VBA 1 August 23rd 06 12:45 PM
Convert OL VBA - Code into com add-in Joerg Meier Add-ins for Outlook 3 May 31st 06 07:14 AM
VBA Code not running until editor is open gamename Outlook and VBA 0 May 17th 06 06:42 PM
Using VBA code to automate a process [email protected] Outlook and VBA 7 April 21st 06 05:26 PM
VBA Code to check Task Status [email protected] Outlook and VBA 2 February 3rd 06 07:16 PM


All times are GMT +1. The time now is 07:51 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.