PC Review
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
You don't have appropriate permission to perform this operation
Forums
Newsgroups
Microsoft Outlook
Microsoft Outlook VBA Programming
You don't have appropriate permission to perform this operation
![]() |
You don't have appropriate permission to perform this operation |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
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 |
|
|
|
#2 |
|
Guest
Posts: n/a
|
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 > > |
|
|
|
#3 |
|
Guest
Posts: n/a
|
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 > > > > > > |
|
|
|
#4 |
|
Guest
Posts: n/a
|
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 > > > > > > > > > > > > |
|
|
|
#5 |
|
Junior Member
|
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. |
|
|
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

