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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VBScript to address an object 1

Status
Not open for further replies.

capone67

Programmer
Nov 6, 2000
115
0
0
CA
Hi gang

I am trying to get myself started on programming MS Outlook 2000. As it is right now all I am trying to do is populate a combobox with values. The problem seems to be with gettting to the combo box. I know how to use the additem and how to get my values out of a database but I cannot for the life of me figure out how to get the combo box object. I will need to be able to send the form with a task so I assume that I need to use VBscript. Here is the code I have tried so far.

option explicit

Dim objApplication 'outlook application
Dim objNameSpace 'name space
Dim objFolder 'Folder onject
Dim objTasks 'Tasks collection
Dim objFormPage 'Form Page object
Dim Control
Dim FormPage

Set objApplication=Createobject("outlook.application")
Set objNameSpace=objApplication.GetNameSpace("MAPI")
'get tasks folder
Set objFolder=objNameSpace.GetDefaultFolder(13)


Set objTasks=objFolder.modifiedformpages("Maintenance")

My modified form page is the Tasks page and I have renamed P.2 to Maintenace
I have a combobox on it called cboProperties (is this the problem?)
I want to populate this cboProperties. How do I get to it? I am getting an error on the line with modified form pages.

Please help me

Ken Patenaude
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top