|
-
Dec 20th, 2005, 01:33 PM
#1
Thread Starter
Junior Member
Outlook Toolbar
I want to load a custom commandbar to the email editor when we load a new instance of editor. (Using Word as Default Email editor)
I have done this in Word by writing AutoNew() event handler but when I try to use it through Outlook or even in Word (by clicking new Mail Message) the macro is not executed.
The AutoNew() macro was written in Normal.dot template.
Any ideas?
-
Dec 20th, 2005, 01:36 PM
#2
Re: Outlook Toolbar
Did you create the toolbar manually or via code? it sounds like you are wanting to have this toolbar on the email viewer window (Inspector). If you have Macros disabled then no code will run.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Dec 20th, 2005, 02:00 PM
#3
Thread Starter
Junior Member
Re: Outlook Toolbar
The bar is created by code
I have added a command bar object to the commandbars collection.
macros are enabled.
The macro runs when word is executed but not executed when an instance of Word is opened via Outlook
-
Dec 20th, 2005, 02:41 PM
#4
Re: Outlook Toolbar
I imagine that's because I don't think that it uses the normal.dot as the email template.
I suspect that it uses a different template.
-tg
-
Dec 21st, 2005, 06:22 AM
#5
Re: Outlook Toolbar
If you go to the File > Properties of the email thats being created or edited with Word you can click the General tab and see that it uses the Nrmal.dot template.
What is probably happening is that Outlook turns on and off the appropriate default toolbars. So you have two options.
1. Add a custom toolbar button to the Email toolbar.
2. Add a custom button to the Standard toolbar in the Outlook Inspector
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|