Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automation Error - the server threw an exception?

Status
Not open for further replies.

poctok

Technical User
Jun 1, 2001
15
0
0
GB
Dear All - I need help!

I am trying to make a show a folder in Outlook as an Address Book using the following code:

'Add folder
Set myFolder = myFolders.Item("All Public Folders").Folders.Item("Report Distribution")
myFolder.Folders.Add stOfolder, olFolderContacts
'Make folder an address book
Set myFolder = myFolders.Item("All Public Folders").Folders.Item("Report Distribution").Folders.Item(stOfolder)
myFolder.ShowAsOutlookAB = True

Everything works until the showasoutlook line and then I get the exception error.

Any ideas?

Regards
Nicky
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top