ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Protect and Share (https://www.excelbanter.com/excel-programming/397111-protect-share.html)

dubo[_2_]

Protect and Share
 
Is there a way to 'protect and share with password' a workbook that is
already structure protected, via VBA code?

ActiveWorkbook.Protect Password:="pass", Structu=True
ActiveWorkbook.ProtectSharing Filename:=Thisworkbook.name,
sharingpassword:="pass"

It lets me execute only one line, either first or second... If I do it
manualy via menus it works..

I found many questions like this one, but with no answer.. btw it's Excel
2003..


Thanx




All times are GMT +1. The time now is 07:21 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com