Code to Create Quick Parts

dende
NewLounger
Posts: 6
Joined: 17 Feb 2010, 19:27

Code to Create Quick Parts

Post by dende »

Hi,
Quick Parts in Outlook seem to disappear all the time where I work. I'd like to write a macro to re-add the Quick Parts after they disappear, as this does not seem to be a problem that is being looked into.
Is this simple to do? I can imagine that it might not be, given the variety of things that Quick Parts have to store. These would just be plain text, though. I couldn't find any examples on the web. But if it is, what's the syntax to set up a simple Quick Part?
Thanks!

User avatar
HansV
Administrator
Posts: 72547
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Code to Create Quick Parts

Post by HansV »

Welcome to Eileen's Lounge!

Are you using Outlook 2007? There is no support for quick parts/building blocks in Outlook 2007 VBA. I don't know if this will be added in Outlook 2010.
Regards,
Hans

dende
NewLounger
Posts: 6
Joined: 17 Feb 2010, 19:27

Re: Code to Create Quick Parts

Post by dende »

Ah - that must be why I couldn't find any examples. Yes, we are using 2007. Thanks for clarifying!