View Single Post
  #1  
Old March 9th 06, 09: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


Ads