Link to home
Start Free TrialLog in
Avatar of skillilea
skillilea

asked on

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

Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

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?
Avatar of skillilea
skillilea

ASKER

I am trying to turn those settings off.  

Thanks
ASKER CERTIFIED SOLUTION
Avatar of Rory Archibald
Rory Archibald
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Rorya
Thanks tons for this!

Is there a good resource that details or I can use as a reference to find these properties?
Either MSDN or the Object Browser (f2) in the VB Editor. Of course, both assume you have some idea what you are looking for!