Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 57
Default Proctect when closing

Can any of you nice people give me the script to protect sheet 1, with a
password when spreadsheet is close. Please highlight where I need to
populate the password with *'s

Thanks in advance
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 44
Default Proctect when closing

Private Sub Workbook_BeforeClose(Cancel As Boolean)
Sheets("Sheet1").Protect Password:=" * "
End Sub
--
Dave


"TheRook" wrote:

Can any of you nice people give me the script to protect sheet 1, with a
password when spreadsheet is close. Please highlight where I need to
populate the password with *'s

Thanks in advance

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
Closing workbooks w/o closing Excel Barb in MD Excel Discussion (Misc queries) 3 February 15th 10 06:42 PM
how to proctect a workbook, then allow updates to be seen as read Sharon Excel Discussion (Misc queries) 2 January 28th 08 11:41 PM
VBA to proctect locked cells in sheet swatsp0p[_7_] Excel Programming 6 June 27th 05 08:33 PM
Closing VB triggers closing Excel Minilek Excel Programming 2 August 6th 04 05:17 PM
closing excel after closing a workbook CWalsh[_2_] Excel Programming 3 January 21st 04 03:33 PM


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

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

About Us

"It's about Microsoft Excel"