Article ID: 140542
Article Last Modified on 10/11/2006
' In this example you will have to activate Microsoft Excel
' before issuing any commands that require user interaction.
Sub Logging_On_To_SchedulePlus()
Dim objSched As Object
Dim CurApp As String
Dim UserName as String
'sets the caption of the active application to a variable
CurApp = Application.Caption
'creates the Schedule+ object
Set objSched = CreateObject("scheduleplus.application.7")
' Checks to see if you are logged on to Schedule+
If Not objSched.LoggedOn Then
AppActivate CurApp 'activates Excel
'prompts you for you email name
UserName = Application.InputBox("Please Enter Your Email Name")
objSched.Logon UserName, "", True 'logs you onto schedule+
End If
AppActivate CurApp 'activates excel
MsgBox objSched.UserAddress ' Displays the path to the user's schedule
' file
objSched.Logoff 'logs off of schedule+
Set objSched = Nothing ' clears the object
End Sub
Additional query words: SDK XL7
Keywords: kbhowto kbprogramming KB140542