????? ????? Outlook ???????? Visual Basic

?????? ????????? ?????? ?????????
???? ???????: 220595 - ??? ???????? ???? ????? ????? ??? ???????.
????? ???? | ?? ????

?? ??? ??????

??????

???? ??? ??????? ????? ?????? ?? Microsoft Outlook ???????? ??????? ?? Visual Basic ???????. ???? ?????? ???? ????? ????? ?? ????? ???????? ?????? ??????? ???????? ???? ?????? Microsoft Outlook.

??????? ????

???? ??????? ????? ????? ?????? ??????. ?????? ??????? ????? ???? ?????? ?????? ??? ????? ??? Microsoft Outlook. ???? ?????? ?????? ????? ??????? ?? ?????? ??????? ??????? ?????? ?? Microsoft Outlook:
?? ??? ??????????? ??? ??????
????? Outlook????? ???? ????? ????? ?? ????? ???????? ?????
Outlook 97"???? Microsoft Outlook 8.0 ?????"msoutl8.olb
msoutl8.olb"????? ?????? 98 Outlook Microsoft"msoutl85.olb
Outlook 2000"???? Microsoft Outlook 9.0 ?????"msoutl9.olb
Outlook 2002"???? Microsoft Outlook 10.0 ?????"msoutl.olb
Office Outlook 2003"???? Microsoft Outlook 11.0 ?????"msoutl.olb

????? ????? ??????? ????????

  1. ??? ????? Visual Basic ?????? EXE ????? ???? ???????.
  2. ?? ??????? ' ????? ' ? ???? ????? ???? Microsoft Outlook.
  3. ????? ?? ??? ??????? ????? ??.
  4. ???? ????? ??????? ??? ???? ?? ?? ?????? ???????? ???????? ???????:
     ' Start Outlook.
     ' If it is already running, you'll use the same instance...
       Dim olApp As Outlook.Application
       Set olApp = CreateObject("Outlook.Application")
        
     ' Logon. Doesn't hurt if you are already running and logged on...
       Dim olNs As Outlook.NameSpace
       Set olNs = olApp.GetNamespace("MAPI")
       olNs.Logon
    
     ' Create and Open a new contact.
       Dim olItem As Outlook.ContactItem
       Set olItem = olApp.CreateItem(olContactItem)
    
     ' Setup Contact information...
       With olItem
          .FullName = "James Smith"
          .Birthday = "9/15/1975"
          .CompanyName = "Microsoft"
          .HomeTelephoneNumber = "704-555-8888"
          .Email1Address = "someone@microsoft.com"
          .JobTitle = "Developer"
          .HomeAddress = "111 Main St." & vbCr & "Charlotte, NC 28226"
       End With
       
     ' Save Contact...
       olItem.Save
        
     ' Create a new appointment.
       Dim olAppt As Outlook.AppointmentItem
       Set olAppt = olApp.CreateItem(olAppointmentItem)
        
     ' Set start time for 2-minutes from now...
       olAppt.Start = Now() + (2# / 24# / 60#)
        
     ' Setup other appointment information...
       With olAppt
          .Duration = 60
          .Subject = "Meeting to discuss plans..."
          .Body = "Meeting with " & olItem.FullName & " to discuss plans."
          .Location = "Home Office"
          .ReminderMinutesBeforeStart = 1
          .ReminderSet = True
       End With
        
     ' Save Appointment...
       olAppt.Save
        
     ' Send a message to your new contact.
       Dim olMail As Outlook.MailItem
       Set olMail = olApp.CreateItem(olMailItem)
     ' Fill out & send message...
       olMail.To = olItem.Email1Address
       olMail.Subject = "About our meeting..."
       olMail.Body = _
            "Dear " & olItem.FirstName & ", " & vbCr & vbCr & vbTab & _
            "I'll see you in 2 minutes for our meeting!" & vbCr & vbCr & _
            "Btw: I've added you to my contact list."
       olMail.Send
        
     ' Clean up...
       MsgBox "All done...", vbMsgBoxSetForeground
       olNS.Logoff
       Set olNs = Nothing
       Set olMail = Nothing
       Set olAppt = Nothing
       Set olItem = Nothing
       Set olApp = Nothing
    						
  5. ?? ?????? ??????? ?? ???? ??? ???? ?????? ????????? ????????.
????? ????? ????????? ????????, ??? ?? ???? ???? ??? ????? ????? ???? "James ????," ???? ????? ?? ??????? ?? ????? ???? ?? ????? ????? ?? ????? ????? ??? someone@microsoft.com. ?????? ???? ????? ????? ????? ???? ??????? ?????? ?? (9/15) ??? ????? ??? ????? ?? ????? Outlook ??????? ?????.

????? ??? Outlook 2002 ??? ?????? ?????? ?????: ????? ?????? ?????? ?????? ??? ?????? ?????? ?????????? ???? ??? ???????? ?? Outlook ?? ????? ??? ??? ??? ???? ?? ?????? ????? ??? ?? ??? ??? ??????? ???? ????? ??? ????? ????? ???? ???????? ????. ??? ?????? ??? ?????? ?? unknowingly ????????? ?? ??? ????? ?????? ???? ???????? ?? ??????.

????? ?? ?????????? ???? ??? ??? ??????? ?????? ?????? ?? "????? ??????? ?? Microsoft:
290500??? ????? ?????? ???????? ?????? ?????? ?????????? ?? Outlook 2002

?????

????? ?? ????????? ??? ????? ????? Outlook ???? ??? ????? ???????? ??????? ?????? ?? "????? ??????? ?? Microsoft:
166368????? ??????? ??????? ? ??????? ?? Outlook 97
180826????? ??????? ??????? ? ??????? ?? Outlook 98
271225????? ??????? ??????? ? ??????? ?? Outlook 2000
287531????? ??????? ??????? ??????? ????? ?? Outlook 2002
313802????? ??????? ???? ??????? ???????? ???? ???? Outlook ?? Visual Basic .NET
313788????? ????? ???? ???????? ???? ???? Outlook ?? Microsoft Visual Basic .NET

???????

???? ???????: 220595 - ????? ??? ??????: 15/???/1427 - ??????: 9.4
????? ???
  • Microsoft Visual Basic Enterprise Edition for Windows 6.0
  • Microsoft Visual Basic 5.0 Learning Edition
  • Microsoft Visual Basic 6.0 Learning Edition
  • Microsoft Visual Basic 5.0 Professional Edition
  • Microsoft Visual Basic 6.0 Professional Edition
  • Microsoft Visual Basic 5.0 Enterprise Edition
  • Microsoft Office Outlook 2003
  • Microsoft Outlook 2002 Standard Edition
  • Microsoft Outlook 2000
  • Microsoft Outlook 97 Standard Edition
  • Microsoft Outlook 98 Standard Edition
????? ??????: 
kbmt kbautomation kbhowto kboutlookobj KB220595 KbMtar
????? ????
???: ??? ????? ??? ?????? ???????? ?????? ????? ???? ????? ?????????? ????? ?? ????????? ?????? ????. ???? ???? ?????????? ???? ?? ???????? ???????? ?????? ????????? ????? ????????? ???????? ????? ???????? ?????? ?? ?????? ??? ?? ???????? ???????? ?? ????? ??????? ?????? ??? ??????? ?????? ??. ?????? ?? ???? ??? ??????? ???????? ????? ?? ???? ????? ?????? ??? ????? ??? ????? ??????? ?? ????? ?? ?????? ??? ??? ??????? ??????? ?? ????? ????? ????? ????? ?????. ?? ????? ???? ?????????? ??????? ??? ????? ?? ??????? ?? ????? ?????? ?? ??? ????? ?? ????? ??????? ?? ???????? ?? ??? ???????. ???? ???? ?????????? ???????? ??? ????? ?????? ??????? ??????
???? ??? ????? ??????? ?????? ??????????220595

????? ???????

 

Contact us for more help

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