|
-
May 22nd, 2006, 02:31 AM
#1
[FAQ's OD] How do I deploy or install Macros?
One way to deploy your Outlook Macros is to copy the VbaProject.OTM file from one system to another. The VbaProject.OTM contains all the VBA code. This will work for 2003 but for 2000 and 2002 you need to open the VBA editor in order to link the Application_ events to fire. Note: It will not merge any previous Macro code on the users system as the file copy process will overwrite it. If the user has Macros already then a manuual copy past of the actual code in the VBA IDE will be necessary to merge the two. Also, Outlook should be closed and not running during the file copy process.
The location of the VbaProject.OTM file is:
Userprofile\Application Data\Microsoft\Outlook\VBAProject.OTM
Another would be to use manually export each .cls, frm, .bas file and copy them over and do a Import for each one, but its allot of work if you have allot to do.
Finally, there is the Office Profile Wizard.
Note: The best method for distributing Outlook Macro code is to create an Outlook COM Add-In instead.
Last edited by RobDog888; May 23rd, 2006 at 05:10 AM.
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
|