|
-
Mar 21st, 2002, 01:01 PM
#1
Thread Starter
New Member
ActiveX Error Unable to create ActiveX object
Dim ol as Object
Dim olns as Object
Dim objFolder as Object
Dim objAllContacts as Object
Dim Contact as Object
Set ol = New Outlook.Application------**Error occurs here**
Set olns = ol.GetNamespace("MAPI")
Set objFolder = olns.GetDefaultFolder(olFolderContacts)
Set objAllContacts = objFolder.Items
For Each Contact In objAllContacts
MsgBox Contact.FullName
Next Contact
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|