Turn off excel "track changes" on a shared WB

I'll try to explain this.   Worked with Microsoft  on this one a while back.  We are running a shared workbook on Terminal server.  Version excel is 2007.  We are trying to create a macro on open that turns off these specific options under review, shared workbook advanced:
 1) don't keep change history
 2) print settings
 3) Filter settings

We had the below code running in 2003 and it seemed to work.  It does not work in 2007.

Note:
The reason for the code is that it seems to turn on/off based on the workbooks you open and the terminal user you use.

Thanks for the help.


If Application.Version <= 12 Then
       If cmdBar.ID = 30138 Then
           cmdBar.Enabled = True
       End If
    End If
    On Error GoTo 0
    Set cmdBar = Nothing

Open in new window

skillileaAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Rory ArchibaldCommented:
You can't disable Ribbon controls like that - you need to alter the XML of the file to do it. 
Are you trying to disable the controls on the menu or actually turn those settings off?
0
skillileaAuthor Commented:
I am trying to turn those settings off.  

Thanks
0
Rory ArchibaldCommented:
The code would be:

With ActiveWorkbook
        .KeepChangeHistory = False
        .PersonalViewListSettings = False
        .PersonalViewPrintSettings = False
    End With

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
skillileaAuthor Commented:
Rorya
Thanks tons for this!

Is there a good resource that details or I can use as a reference to find these properties?
0
Rory ArchibaldCommented:
Either MSDN or the Object Browser (f2) in the VB Editor. Of course, both assume you have some idea what you are looking for!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.