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

Assigning an Outlook template to a toolbar



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old June 30th 06, 10:02 PM posted to microsoft.public.outlook.program_vba
Heather Pitch
external usenet poster
 
Posts: 1
Default Assigning an Outlook template to a toolbar

What VBA script do I use in my macros to assign a .oft file to a toolbar
button?

Thanks.
Ads
  #2  
Old June 30th 06, 10:25 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Assigning an Outlook template to a toolbar

You can use Application.CreateItemFromTemplate.

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

"Heather Pitch" Heather wrote in message ...
What VBA script do I use in my macros to assign a .oft file to a toolbar
button?

Thanks.

  #3  
Old June 30th 06, 10:43 PM posted to microsoft.public.outlook.program_vba
Heather Pitch
external usenet poster
 
Posts: 1
Default Assigning an Outlook template to a toolbar

Thanks for your speedy reply Sue. I am a relative novice at VBA scripting.
Are you able to help me with the whole script?

"Sue Mosher [MVP-Outlook]" wrote:

You can use Application.CreateItemFromTemplate.

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

"Heather Pitch" Heather wrote in message ...
What VBA script do I use in my macros to assign a .oft file to a toolbar
button?

Thanks.


  #4  
Old June 30th 06, 11:01 PM posted to microsoft.public.outlook.program_vba
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Assigning an Outlook template to a toolbar

Then it's time you learned about the Object Browser: Press ALt+F11 to open the VBA environment in Outlook, then press F2. Switch from All Libraries to Outlook to browse all Outlook objects and their properties, methods, and events. Select any object or member, then press F1 to see its Help topic, usually including sample code.

Note that VBA, like VBScript, has an intrinsic Application object, so you don't need this statement:

Set myOlApp = CreateObject("Outlook.Application")

You can use this instead:

Set myOlApp = Application

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

"Heather Pitch" wrote in message ...
Thanks for your speedy reply Sue. I am a relative novice at VBA scripting.
Are you able to help me with the whole script?

"Sue Mosher [MVP-Outlook]" wrote:

You can use Application.CreateItemFromTemplate.

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

"Heather Pitch" Heather wrote in message ...
What VBA script do I use in my macros to assign a .oft file to a toolbar
button?

Thanks.


 




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
Template on Toolbar Neil_Dell Outlook - General Queries 6 June 13th 06 07:01 PM
assigning a task Roby FF Outlook - General Queries 3 April 19th 06 01:58 PM
Assigning shortcuts to Custom toolbar buttons Laks Add-ins for Outlook 3 April 3rd 06 01:31 PM
Assigning Multiple Users to Outlook Tasks [email protected] Outlook - General Queries 0 March 16th 06 09:53 AM
Tasks / assigning them... Ivan T. Williams Outlook - General Queries 0 January 25th 06 02:13 PM


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