Outlook 2007

I need to add the Advance Find button to the toolbar in outlook 2007 during my unattended deployment.
I know it stores the setting in the outcmd.dat file but don't think copying it everywhere is the correct solution.
Has anyone done anything like this??

0 Comments   [ + ] Show comments

Answers (1)

Posted by: anonymous_9363 12 years ago
Red Belt
The best way to do this would be to use the Outlook automation interface.

The quickest way to do that would be to record a macro in Outlook which adds the button. You'll then need to adapt the code produced from VBA to VB Script. Alt+F11 gets you into the VBA editor in Outlook (and other Office apps, of course). Mostly, that consists merely removing any data typing, i.e. where a line says something like 'Dim oOutlook As Outlook.Application', you edit it to 'Dim oOutlook'. Of course, you'll need to create the oOutlook object in your VBS code, too. Once you have working code (you can - and should - test it as a stand-alone script), add it as a Custom Action to your transform, ensuring that it executes once Outlook is installed.

You should be able to easily find sample code for Outlook automation. Try http://www.slipstick.com as a starting point.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ