PC Review


Reply
Thread Tools Rate Thread

Error on Custom Forms

 
 
Bryan Dickerson
Guest
Posts: n/a
 
      3rd Jun 2005
I'm trying to disable a command bar that has occassionally caused problems
in a custom form. I came up with this routine:

Sub SetCmdBars(ByVal boolVal)
Dim oF
Dim oCB

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 Sub

.... and some users are getting the error message:
"You don't have appropriate permission to perform this operation." and the
line number points to the script code line: "Set oF = Item.GetInspector".

Anyone have any ideas?

Thanx!


--
TFWBWY...A


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macros have been disabled error Message with Custom forms BuddyWork Microsoft Outlook Form Programming 17 6th Oct 2009 09:38 AM
Error opening custom forms Cal Microsoft Outlook Form Programming 4 25th Jan 2008 12:09 AM
Create custom forms caused system error &H8007007E flybean Microsoft Excel Programming 4 4th Aug 2006 02:55 AM
Custom Forms script error Bryan Dickerson Microsoft Outlook VBA Programming 10 7th Jun 2005 11:03 PM
Error with custom forms in both heirarchy's OL2003 Zam Loomstein Microsoft Outlook Form Programming 3 19th Nov 2003 02:11 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:07 PM.