Script Error Code : 80070005 Outlook 2003

G

Guest

Hell

I do have some troubles running a VBS script on Win XP Home Edition + Outlook 2003 within Office 2003
I had not troubles on outlook 200
I am administrator of the machine and i ge

Error Message : Window Script Erro
Line : 1
Caract :
Error :"You do not have the rights for that instruction.." (translation from French)
Code : 80070005 Source : Microsoft Office Outloo

Thanks a lot for your help, I took off all security within the Options Menu from Outlook to let any type of attachment running, without success.

Regard

J


Sample of script i

Dim ap
Dim n
Dim folde

Set app = CreateObject("Outlook.Application"

If Not app Is Nothing The
Set ns = app.GetNameSpace("MAPI"

If Not ns Is Nothing The

Set folder = ns.GetDefaultFolder(9) 'Calenda

If Not folder Is Nothing The
folder.Name = "Calendar
End I

Set folder = ns.GetDefaultFolder(10) 'Contact

If Not folder Is Nothing The
folder.Name = "Contacts
End I

Set folder = ns.GetDefaultFolder(11) 'Journa
 
K

Ken Slovak - [MVP - Outlook]

Where is this script running? If it's in an Outlook form don't use
CreateObject, use the inherent Application object that always refers to
Outlook.Application.

If it's not in an Outlook form see if using NameSpace.Logon helps. Also,
which specific line in your code causes the error?




JP said:
Hello

I do have some troubles running a VBS script on Win XP Home Edition +
Outlook 2003 within Office 2003
I had not troubles on outlook 2002
I am administrator of the machine and i get

Error Message : Window Script Error

Thanks a lot for your help, I took off all security within the Options
Menu from Outlook to let any type of attachment running, without success..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top