A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook - Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Script Error in Custom Form



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 9th 06, 08:12 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Bryan Dickerson
external usenet poster
 
Posts: 8
Default Script Error in Custom Form

I have a couple users that are seeing an error to the effect of "You do not
have permission to perform this action." at the following line in a custom
form script: "Set oF = Item.GetInspector". The context is the following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If

Anyone got any ideas? Sue?


--
TFWBWY...A


  #2  
Old March 21st 06, 09:56 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Bryan Dickerson
external usenet poster
 
Posts: 8
Default Script Error in Custom Form

Does anyone have any ideas? Sue?

"Bryan Dickerson" wrote in message
...
I have a couple users that are seeing an error to the effect of "You do not
have permission to perform this action." at the following line in a custom
form script: "Set oF = Item.GetInspector". The context is the following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If

Anyone got any ideas? Sue?


--
TFWBWY...A



  #3  
Old March 21st 06, 10:53 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Script Error in Custom Form

What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bryan Dickerson" wrote in message ...
Does anyone have any ideas? Sue?

"Bryan Dickerson" wrote in message
...
I have a couple users that are seeing an error to the effect of "You do not
have permission to perform this action." at the following line in a custom
form script: "Set oF = Item.GetInspector". The context is the following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If

Anyone got any ideas? Sue?


--
TFWBWY...A



  #4  
Old March 22nd 06, 03:03 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Bryan Dickerson
external usenet poster
 
Posts: 8
Default Script Error in Custom Form

It's called in the Item_Open and Item_Close. The problem is caused when
it's called from the Item_Close--right before it finishes.

"Sue Mosher [MVP-Outlook]" wrote in message
...
What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bryan Dickerson" wrote in message
...
Does anyone have any ideas? Sue?

"Bryan Dickerson" wrote in message
...
I have a couple users that are seeing an error to the effect of "You do
not
have permission to perform this action." at the following line in a custom
form script: "Set oF = Item.GetInspector". The context is the following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If

Anyone got any ideas? Sue?


--
TFWBWY...A





  #5  
Old April 18th 06, 05:34 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Bryan Dickerson
external usenet poster
 
Posts: 8
Default Script Error in Custom Form

Any ideas? We've converted all our users to the Exchange 2003 server and
most all of them are using the OL 2003 client--especially the ones that are
having the problem.

"Bryan Dickerson" wrote in message
...
It's called in the Item_Open and Item_Close. The problem is caused when
it's called from the Item_Close--right before it finishes.

"Sue Mosher [MVP-Outlook]" wrote in message
...
What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bryan Dickerson" wrote in message
...
Does anyone have any ideas? Sue?

"Bryan Dickerson" wrote in message
...
I have a couple users that are seeing an error to the effect of "You do
not
have permission to perform this action." at the following line in a
custom
form script: "Set oF = Item.GetInspector". The context is the
following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If

Anyone got any ideas? Sue?


--
TFWBWY...A







  #6  
Old April 18th 06, 05:46 PM posted to microsoft.public.office.developer.outlook.forms,microsoft.public.outlook.program_forms
Sue Mosher [MVP-Outlook]
external usenet poster
 
Posts: 11,651
Default Script Error in Custom Form

No ideas. I don't know why a call to Item.GetInspector would give you that error.

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003
http://www.turtleflock.com/olconfig/index.htm
and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx

"Bryan Dickerson" wrote in message ...
Any ideas? We've converted all our users to the Exchange 2003 server and
most all of them are using the OL 2003 client--especially the ones that are
having the problem.

"Bryan Dickerson" wrote in message
...
It's called in the Item_Open and Item_Close. The problem is caused when
it's called from the Item_Close--right before it finishes.

"Sue Mosher [MVP-Outlook]" wrote in message
...
What event is this code in?

"Bryan Dickerson" wrote in message
...
Does anyone have any ideas? Sue?

"Bryan Dickerson" wrote in message
...
I have a couple users that are seeing an error to the effect of "You do
not
have permission to perform this action." at the following line in a
custom
form script: "Set oF = Item.GetInspector". The context is the
following:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

If UserName "Me" Then
Set oF = Item.GetInspector
For Each oCB in oF.CommandBars
If oCB.Name = "Standard" Then
oCB.Enabled = boolVal
oCB.Visible = boolVal
End If
Next
oF.CommandBars("View").Enabled = boolVal
oF.CommandBars("Tools").Enabled = boolVal
oF.CommandBars("Actions").Enabled = boolVal
End If


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Action or Script to Purge Deleted Messages on IMAP account Frank M. Outlook and VBA 9 July 10th 09 06:44 PM
Script error when printing HTML messages Chris Rickman Outlook - Installation 8 April 17th 08 04:44 PM
Outlook 2003 startup script error [email protected] Outlook - General Queries 0 January 24th 06 07:34 PM
I send an Outlook custom form, but a std. form displays? Sue Mosher [MVP-Outlook] Outlook - Using Forms 0 January 20th 06 07:41 PM
Cannot programmatically open custom message in custom form ms Outlook - Using Forms 1 January 20th 06 03:01 PM


All times are GMT +1. The time now is 11:08 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.