Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can't Instantiate a Control Object for Outlook Form

Status
Not open for further replies.

Niall22

IS-IT--Management
Jun 9, 2000
109
CA
Hi Guys,

I need to create a custom form in Outlook. This is my first time ever working with VBA and I can't seem to be able to modify the properties of an object like you can in Visual Basic. I browsed the MSDN website and found out that I need to "instaniate" the object control before I can modify it's properties but the code the gave as an example won't work.

Here is the code I've tried:

Set ComboBox1 = Item.GetInspector.ModifiedFormPages("Page Name").Controls("ComboBox1)

I also tried:

Set ComboBox1 = GetInspector.ModifiedFormPages("Page Name").ComboBox1

Neither of these work. I get an "unknown expection" error and Microsoft's Script Debugger sucks so that's all it will tell me.

I'm not really a programmer (as you can tell) but I thought this should be realitively easy.

Can anyone throw me a bone?

Thanks,


Niall
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top