Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default 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


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can protect worksheet then workbook but not Protect and Share in code [email protected] Excel Programming 7 January 16th 17 07:01 AM
Share and Protect question Les Stout[_2_] Excel Programming 4 April 3rd 07 11:55 AM
I need to share and also protect certain cells. Ekazakoff Excel Discussion (Misc queries) 0 August 2nd 06 05:08 PM
How to protect the share workbooK Calculate Date range Excel Worksheet Functions 0 September 19th 05 12:02 PM
Share a workbook and protect Jasons Excel Programming 1 November 5th 04 11:26 PM


All times are GMT +1. The time now is 09:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"