home | get Sue’s code | forums | share code | registration

More Outlook Resource Sites

Microsoft Developer Network (MSDN)

FAQs and other general resources

Login

login
password
Remember me

You will need to register and log in if you want to download the source code for the Microsoft Outlook Programming book. The forums and code sharing areas are open to both registered and non-registered visitors.

forum 09-Feb-2010 09:23

Looking for help with Outlook programming projects — VSTO, add-ins, VBA, custom Outlook forms, etc.? You′ve come to the right place!

NEW! >> Subscribe to this site via RSS. For more RSS options, see the complete list of feeds on our main news page.

 

    Page [ 1 ]  
 Outlook Expert Techniques Printer Friendly Version
Working with toolbars, menus, ribbon; generating custom reports; deploying forms; connecting to databases, Exchange folders, and XML Web services
Topic
Common code
Has anyone found an easy way to include common code across forms other than through a compiled object? Having compiled objects makes it fairly cumbersome to distribute/update. Currently I have common code block of standard utility functions (add link to item, populate a combo box with a collection, etc..) that I include in all my forms, but whenever I make a change I have to go through by hand and update the block in every form. The upside is that the change is transparent to the user as oppose to an ocx which would have to be reinstalled.

On a related note, does anyone want to share their common utility functions code?

  19-Nov-2002  10:30
  19-Nov-2002  21:54   
 I think I saw an example once where someone used an include file in their form VBScript code, but that doesn't really give you much of any advantage, because it has to be on every client. Unfortunately, I can't remember where I saw it.


 Feel free to post your favorite routines over in the Share Code section. That's what this site is all about. I've been putting some of my favorites over there, little by little, in additional to all the routines that are in the code download for the book.
  17-Dec-2002  03:30   
If we could include common code in a file (like Sue said), we don't need to install it in every client, we could add it to a public folder (as attachment of an item). Save this attachment to local HDD of client computer anytime we want to use. But I don't know how to include file anyway )-: I still have to use COM Addin for common code, and very happy to share with you.
  05-Feb-2003  07:47   
Adding it to a public folder wouldn't simplify much, because such a file can't be referenced directly. Any attachment has to be saved to a system folder first.
    Page [ 1 ]  
Post a new message to this topic.



name        email