在我机器中直接运行,出现一个错误,报:Dim objOLApp As Outlook.Application 找不到工程和库。请教高手指点一二,多谢了
Private Sub Command0_Click() '新建任务
Dim objOLApp As Outlook.Application
Dim NewTask As Outlook.TaskItem
Set objOLApp = New Outlook.Application
Set NewTask = objOLApp.CreateItem(olTaskItem)
NewTask.Display
End Sub