Script Error Code : 80070005 Outlook 2003

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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..
 
Back
Top