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



Ads