Share workbook macro 2

cgmojoco

Well-known Member
Joined
Jan 15, 2005
Messages
699
I'm looking for a script that will:
-Share the workbook
As part of the sharing, these advanced options would be set
-Select, don't keep change history
-Select automatically save every 5 minutes
-Do not save personal view print and filter settings

Can this be done?

:unsure:
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
This did the trick---but when another user opens the workbook, apparently these settings don't auto-populate for them....in other words, only the user that runs this macro when it's opened get's these settings applied to the workbook.

Another user entering the workbook would not have the workbook saved every 5 minutes!!! :eek:

:(

Please please help! I need to see their work as they go, not every 15 minutes.

Code:
Sub ShareWB()
'SHARE
Dim CurFilename As String
Dim CurPath As String
Dim CurFile As Variant
Application.DisplayAlerts = False
ActiveWorkbook.ProtectSharing Filename:=ActiveWorkbook.FullName
'
'share settings
'
    With ActiveWorkbook
        .PersonalViewPrintSettings = False
        .PersonalViewListSettings = False
        .AutoUpdateFrequency = 5
        .AutoUpdateSaveChanges = True
        .KeepChangeHistory = False
    End With
'
'
'
    ActiveWindow.SmallScroll Down:=-54
Application.DisplayAlerts = True
'
'
'Save again
'
ActiveWorkbook.SaveAs Filename:=StrFilePath & "\" & _
StrFileName, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
End Sub
 
Upvote 0

Forum statistics

Threads
1,215,237
Messages
6,123,811
Members
449,127
Latest member
Cyko

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top