[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1147
  • Last Modified:

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

0
skillilea
Asked:
skillilea
  • 3
  • 2
1 Solution
 
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
 
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

Featured Post

[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now