Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Is this correct?

I am trying to have the workbook unprotect itself before closing and it
doesn't appear to be working. Here's what I'm doing. Is this the
correct usage of the Workbook_Beforeclose() function?

Private Sub Workbook_BeforeClose()
Application.Worksheets.Unprotect
End Sub

I'm thinking that maybe the worksheets keyword is wrong, should it be
workbook?

Thanks
Tracey


---
Message posted from http://www.ExcelForum.com/

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
Correct #N/A Value winnie123 Excel Worksheet Functions 6 February 18th 09 02:17 PM
If with AND - Is this correct? Greg Excel Worksheet Functions 4 March 7th 08 04:01 AM
If correct, add 1 sparky3883 Excel Worksheet Functions 2 October 11th 05 07:52 PM
if(b2=1,b3,0) is this correct [email protected] Excel Worksheet Functions 2 March 21st 05 08:21 AM
I will never, ever get this correct ... Dave Peterson[_3_] Excel Programming 0 September 2nd 03 03:34 PM


All times are GMT +1. The time now is 10:58 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"