Remove sharing : Workbook Share « Excel « VBA / Excel / Access / Word






Remove sharing

 

Sub RemoveSharing()
    Dim wb As Workbook
    Set wb = Application.Workbooks.Open("\\public\shared.xls", , , , "pass1", "pass2")
    wb.UnprotectSharing pass3
    wb.WritePassword = ""
    wb.Password = ""
End Sub

 








Related examples in the same category

1.Protect and share
2.Is Workbook Open