Google Answers Logo
View Question
 
Q: the Outlook Object Model and how we can use it to Lock Outlook Views ( No Answer,   1 Comment )
Question  
Subject: the Outlook Object Model and how we can use it to Lock Outlook Views
Category: Computers > Programming
Asked by: sherpaj-ga
List Price: $15.00
Posted: 18 Feb 2005 18:32 PST
Expires: 20 Mar 2005 18:32 PST
Question ID: 476918
I have numerous custom task views set up in Outlook that I would like
to lock, so that I can't blow away a custom view when I accidentally
click on one of the column headers. I have researched this for a while
and the only suggestion that I have found is the following:

You can?t prevent users from customizing views. The closest you can
come is preventing any of their changes from being persistent by
setting View.LockUserChanges = True.

Does anyone know what to do with this command or what it does exactly.
I am not a programmer and have no idea where I would need to make this
change. I guess it has something to do with the Outlook Object Model.

According to her this is a change in the Outlook object model.  I have
no idea how to do this or where to get started.  I looked into what
the Outlook Object Model is (the link below).

            You can?t prevent users from customizing views. The
closest you can come is preventing any of their changes from being
persistent by setting View.LockUserChanges = True.

             
            -- 
            Sue Mosher, Outlook MVP
               Author of Microsoft Outlook Programming: Jumpstart
                  for Administrators, Power Users, and Developers
                  http://www.outlookcode.com/jumpstart.aspx

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnout2k2/html/odc_olfaq.asp

I think she assumes we are programmers and know what to do with this. 
My suggestion would be to give this to a programmer and see what they
come up with.

Sabrina

thanx in advnce
Answer  
There is no answer at this time.

Comments  
Subject: Re: the Outlook Object Model and how we can use it to Lock Outlook Views
From: dreamboat-ga on 24 Feb 2005 19:35 PST
 
Sabrina: Sue is probably THE single, most-respected Outlook MVP
(Microsoft Most Valuable Professional). I don't know her personally,
nor have I ever tried writing her, but she also owns
www.slipstick.com. You might want to contact her directly. If she
knows that you're willing to pay for an answer, she may very well help
you--and quickly. You can imagine that someone like her is busy, busy,
busy with people's requests.

Alternatively, you can try the little bit I know about VBA:

--Copy the code that's provided at the link; generally starts with
"Sub" or "Private Sub" and ends with "end sub".
--Open your Outlook.
--Hit Tools-Macro-Visual Basic Editor (VBE).
--On the left, choose Project1, and from the menu: Insert-Module.
--Paste the code into the screen that appears at the right.
--Hit the SAVE diskette to save the code.
--Exit the VBE.

I believe that macro (procedure) would have to "run on startup" of
Outlook, so I would close Outlook and reopen it to "fire" the
procedure code.

Then, presumably, you won't be able to change the views anymore--or at
least not permanently.

If it doesn't work, I've already pointed an Outlook *expert* (sure
looks like an expert to me) to your question here, and maybe they'll
be more helpful. I'll also check back (hope I remember!) to see what's
what.

At least you don't have to pay for my answer. :)

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy