So can you not set properties of Item.GetInspector if you don't have a
certain authorization?
I'm calling it in Item_Open
SetCmdBars False
... and in Item_Close
SetCmdBars True.
And the users report that it's mostly on the SetCmdBars True call that
they are seeing the errors. I tried setting oF =
Item.GetInspector.ModifiedFormPages.Add("Ticket") (I'm not sure what
that
does exactly, but it works to access the Custom Form User Properties)
but
it only caused more errors.
message Yes, that's the latest version.
At what point are you calling this procedure? On Item_Open? Via a
button?
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
Try Picture Attachments Wizard for Outlook!
http://tinyurl.com/9bby8
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
:
I just looked at the public folder whence the custom forms are being
run.
The permissions are correct and there are no exceptions. Outlook
version is
something I've been fighting hard for, but I'm fairly sure that all
these
users are at OL 2003 SP1. That is the latest, right?
in
message Sorry - I didn't realize you were talking about a custom form,
where
of
course the Item object is intrinsic!
I can't imagine why you'd get a permissions error on retrieving the
Inspector object, even if the user only had read permissions -
nothing
is
getting modified, and you can't really alter an item from the
Inspector
object anyway.
You might want to verify the permissions for those users who are
receiving
these errors, and note their Outlook version as well. Otherwise,
I'm
stumped.
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
Try Picture Attachments Wizard for Outlook!
http://tinyurl.com/9bby8
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
:
Item refers to the Outlook Task Item that is available to the
script
when
it
runs. Since this form runs in a folder where each user has rights
to
create
and alter most anything about the individual tasks, I would have
to
assume
(I know dangerous) that the user could modify the Item object.
But
that
may
be a very faulty assumption. Are there any docs that you could
point
me
to?
"Eric Legault [MVP - Outlook]" <
[email protected]>
wrote
in
message Where is the code that declares the Item object?
It obviously sounds like a permissions problem; does the user
have
read
access to the folder that contains the Item you are setting a
reference
to?
--
Eric Legault - B.A, MCP, MCSD, Outlook MVP
Try Picture Attachments Wizard for Outlook!
http://tinyurl.com/9bby8
Job:
http://www.imaginets.com
Blog:
http://blogs.officezealot.com/legault/
:
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!