Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 1
Default cells protection


Dear sir, with my regards, i have a workbook with about ( 10 sheets)
full of formulas,to send these formulas away from spongers , i protcted
some cells or columns which contain them, when i want to work on any
sheet i cancell the protection and forget to protect again .
Is there any way in excell 2003 to protect these cells directly when i
close the sheets.
Thanks in advance.




--
tofimoon3
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 206
Default cells protection

Sure with VBA.
Place this code in a workbook module, if you don't know where that is,
check out this site
http://www.contextures.com/xlvba01.html#Workbook

Place this code there

Private Sub Workbook_BeforeClose(Cancel As Boolean)

Dim Shts As Worksheet

For Each Shts In ThisWorkbook.Worksheets
Shts.Protect Password:="123"
Next
end sub
  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 747
Default cells protection

press alt + f11 , click this workbook ( left hand side )

Insert this code

Private Sub Workbook_BeforeClose(Cancel As Boolean)
For a = 1 To Sheets.Count
Worksheets(a).Protect
Next
End Sub



On Feb 9, 12:59*am, tofimoon3
wrote:
Dear sir, with my regards, i have a workbook with about ( 10 sheets)
full of formulas,to send these formulas away from spongers , i protcted
some cells or columns which contain them, when i want to work on any
sheet i cancell the protection and forget to protect again .
Is there any way in excell 2003 to protect these cells directly when i
close the sheets.
Thanks in advance.

--
tofimoon3


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
About protection of Cells Ruby New Users to Excel 7 August 5th 08 11:31 AM
Protection on particular cells Ravi Excel Discussion (Misc queries) 1 August 1st 08 04:08 PM
Problem with protection of cells Paul Excel Discussion (Misc queries) 3 October 30th 06 02:36 PM
Conditional Protection of Cells Jack_Feeman Excel Worksheet Functions 0 November 4th 05 08:21 PM
Cells Protection [email protected] Excel Discussion (Misc queries) 2 October 6th 05 02:49 PM


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