PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming You don't have appropriate permission to perform this operation

Reply

You don't have appropriate permission to perform this operation

 
Thread Tools Rate Thread
Old 28-04-2004, 06:51 PM   #1
KZ
Guest
 
Posts: n/a
Default You don't have appropriate permission to perform this operation


I have a small program (written in VB) to automate sending emails thru
Outlook.
Program works fine everywhere but one office.
At this location Outlook and my program are installed on terminal server.
Users with administrator rights work without any errors,
but other users are getting an error "You don't have appropriate permission
to perform this operation".
At the same time the same users can send emails directly from Outlook
without any problems.
After investigation I found out that:
- My application can create Outlook application object without any problems
Set objOLApp = CreateObject("Outlook.Application")
- the error happens when I try to create email item
Set myItem = objOLApp.CreateItem(olMailItem)

Does anybody know what permissions are missing to perform this operation?

Thanks,
Krystyna


  Reply With Quote
Old 29-04-2004, 02:52 PM   #2
Ken Slovak - [MVP - Outlook]
Guest
 
Posts: n/a
Default Re: You don't have appropriate permission to perform this operation

I'm not sure about the permissions, but does it work if you get the Inbox
folder and its Items collection and use the Add method to create the new
mail item instead of CreateItem?

--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm


"KZ" <zyzdyn@landtechdata.com> wrote in message
news:uuqZIlULEHA.3664@TK2MSFTNGP10.phx.gbl...
> I have a small program (written in VB) to automate sending emails thru
> Outlook.
> Program works fine everywhere but one office.
> At this location Outlook and my program are installed on terminal server.
> Users with administrator rights work without any errors,
> but other users are getting an error "You don't have appropriate

permission
> to perform this operation".
> At the same time the same users can send emails directly from Outlook
> without any problems.
> After investigation I found out that:
> - My application can create Outlook application object without any

problems
> Set objOLApp = CreateObject("Outlook.Application")
> - the error happens when I try to create email item
> Set myItem = objOLApp.CreateItem(olMailItem)
>
> Does anybody know what permissions are missing to perform this operation?
>
> Thanks,
> Krystyna
>
>



  Reply With Quote
Old 29-04-2004, 05:40 PM   #3
KZ
Guest
 
Posts: n/a
Default Re: You don't have appropriate permission to perform this operation

I don't know. I have to write a test, send to customer and wait for results.

Thank you for your help
Krystyna

"Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
news:edz5KIfLEHA.3332@TK2MSFTNGP10.phx.gbl...
> I'm not sure about the permissions, but does it work if you get the Inbox
> folder and its Items collection and use the Add method to create the new
> mail item instead of CreateItem?
>
> --
> Ken Slovak
> [MVP - Outlook]
> http://www.slovaktech.com
> Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options
> http://www.slovaktech.com/products.htm
>
>
> "KZ" <zyzdyn@landtechdata.com> wrote in message
> news:uuqZIlULEHA.3664@TK2MSFTNGP10.phx.gbl...
> > I have a small program (written in VB) to automate sending emails thru
> > Outlook.
> > Program works fine everywhere but one office.
> > At this location Outlook and my program are installed on terminal

server.
> > Users with administrator rights work without any errors,
> > but other users are getting an error "You don't have appropriate

> permission
> > to perform this operation".
> > At the same time the same users can send emails directly from Outlook
> > without any problems.
> > After investigation I found out that:
> > - My application can create Outlook application object without any

> problems
> > Set objOLApp = CreateObject("Outlook.Application")
> > - the error happens when I try to create email item
> > Set myItem = objOLApp.CreateItem(olMailItem)
> >
> > Does anybody know what permissions are missing to perform this

operation?
> >
> > Thanks,
> > Krystyna
> >
> >

>
>



  Reply With Quote
Old 03-05-2004, 04:03 PM   #4
KZ
Guest
 
Posts: n/a
Default Re: You don't have appropriate permission to perform this operation

Yes, it works.

Thanks,
Krystyna

"KZ" <zyzdyn@landtechdata.com> wrote in message
news:uqPxxhgLEHA.3216@tk2msftngp13.phx.gbl...
> I don't know. I have to write a test, send to customer and wait for

results.
>
> Thank you for your help
> Krystyna
>
> "Ken Slovak - [MVP - Outlook]" <kenslovak@mvps.org> wrote in message
> news:edz5KIfLEHA.3332@TK2MSFTNGP10.phx.gbl...
> > I'm not sure about the permissions, but does it work if you get the

Inbox
> > folder and its Items collection and use the Add method to create the new
> > mail item instead of CreateItem?
> >
> > --
> > Ken Slovak
> > [MVP - Outlook]
> > http://www.slovaktech.com
> > Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
> > Reminder Manager, Extended Reminders, Attachment Options
> > http://www.slovaktech.com/products.htm
> >
> >
> > "KZ" <zyzdyn@landtechdata.com> wrote in message
> > news:uuqZIlULEHA.3664@TK2MSFTNGP10.phx.gbl...
> > > I have a small program (written in VB) to automate sending emails thru
> > > Outlook.
> > > Program works fine everywhere but one office.
> > > At this location Outlook and my program are installed on terminal

> server.
> > > Users with administrator rights work without any errors,
> > > but other users are getting an error "You don't have appropriate

> > permission
> > > to perform this operation".
> > > At the same time the same users can send emails directly from Outlook
> > > without any problems.
> > > After investigation I found out that:
> > > - My application can create Outlook application object without any

> > problems
> > > Set objOLApp = CreateObject("Outlook.Application")
> > > - the error happens when I try to create email item
> > > Set myItem = objOLApp.CreateItem(olMailItem)
> > >
> > > Does anybody know what permissions are missing to perform this

> operation?
> > >
> > > Thanks,
> > > Krystyna
> > >
> > >

> >
> >

>
>



  Reply With Quote
Old 01-02-2006, 07:09 AM   #5
mustafacicekyurt
Junior Member
 
Join Date: Jan 2006
Posts: 1
Trader Rating: (0)
Default

I have a problem like this. But I couldnt find how to write this code in VB 6.0 . Could you show me an example about the Add method to create the new mail item instead of CreateItem ?

Many thanks.
Mustafa.
mustafacicekyurt is offline   Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off