-
1
- #1
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
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