How To Create a New Contact in Schedule Plus from Visual Basic

Article translations Article translations
Article ID: 161343 - View products that this article applies to.
This article was previously published under Q161343
This article has been archived. It is offered "as is" and will no longer be updated.
Expand all | Collapse all


This article demonstrates how to use Visual Basic to add a contact to Schedule Plus.


  1. Start a new Standard EXE project. Form1 is added by default.
  2. Add the following code to Form1's Click event procedure:
          Private Sub Form1_Click()
             Dim objSchdPlus As Object
             Dim objContact As Object
             Set objSchdPlus = CreateObject("SchedulePlus.Application")
             Set objContact = objSchdPlus.ScheduleSelected.Contacts.New
             objContact.SetProperties FirstName:="Santa", _
                LastName:="Claus", PhoneBusiness:="(206)555-4321", _
             Set objContact = Nothing
             Set objSchdPlus = Nothing
           End Sub
  3. Start Microsoft Schedule Plus.
  4. Press the F5 key to run the program. Click the form, and then view your list of contacts in Schedule Plus to see the new entry.
NOTE: If Schedule Plus is not running, the above code will result in run- time error 450: Wrong number of arguments or invalid property assignment.


Article ID: 161343 - Last Review: December 29, 2014 - Revision: 2.1
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
kbnosurvey kbarchive kbhowto kbprogramming KB161343

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from