View Single Post
  #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


Ads