Script Error in Custom Form

  • Thread starter Bryan Dickerson
  • 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?
 
S

Sue Mosher [MVP-Outlook]

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?
 
B

Bryan Dickerson

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?
 
B

Bryan Dickerson

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
 
S

Sue Mosher [MVP-Outlook]

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top