Script Error in Custom Form

  • Thread starter Thread starter Bryan Dickerson
  • Start date Start date
B

Bryan Dickerson

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?
 
What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Bryan Dickerson said:
Does anyone have any ideas? Sue?
 
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.

What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers


Bryan Dickerson said:
Does anyone have any ideas? Sue?
 
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 said:
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.

What event is this code in?

--
Sue Mosher, Outlook MVP
Author of Configuring Microsoft Outlook 2003

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
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

and Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top