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 06-Sep-2010 21:14

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 ]  
 Code Essentials Printer Friendly Version
Beginner’s section on how to work in the VBA environment, how to work with functions and expressions – generally not specific to Outlook
Topic
Looping all controls
Set controlPage = Item.GetInspector.ModifiedFormPages("Message")

Dim ctl As Control

For Each ctl in controlPage
'code
Next ctl

I'm trying too loop all controls in message tab, but it pop up an error with "Expected end of statement" with this line "Dim ctl As Control".

  28-Jul-2010  23:35
  29-Jul-2010  07:35   
Please ignore this... I've fixed the problem, thanks.
    Page [ 1 ]  
Post a new message to this topic.



name        email