Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 211
Default Lock down a wokbook

Hi...

I have a 32 sheet workbook that my users input quite freely. However, when
they have completed their input I want to hit a button that will freeze all
data and refuse any more changes/user input. I'd use protect workbook but the
book is intricate and changing all the cell properties would be a nightmare...

Thanks in advance G
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Lock down a wokbook

Select all the cells on the worksheet (Ctrl-A a few times--depending on what
version of excel you're running) and then format|cells|protection tab.

Check the Locked box.

Then protect that worksheet--not the workbook.
tools|protection|protect sheet

Be aware that this kind of worksheet protection is easily broken.

Gordon wrote:

Hi...

I have a 32 sheet workbook that my users input quite freely. However, when
they have completed their input I want to hit a button that will freeze all
data and refuse any more changes/user input. I'd use protect workbook but the
book is intricate and changing all the cell properties would be a nightmare...

Thanks in advance G


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Lock down a wokbook

Sub LockWorksheets()
Dim sh as Worksheet
for each sh in ActiveWorkbook.worksheets
sh.Cells.Locked = True
sh.Protect
Next

ActiveWorkbook.Save

End Sub

--
Regards,
Tom Ogilvy

"Gordon" wrote in message
...
Hi...

I have a 32 sheet workbook that my users input quite freely. However, when
they have completed their input I want to hit a button that will freeze

all
data and refuse any more changes/user input. I'd use protect workbook but

the
book is intricate and changing all the cell properties would be a

nightmare...

Thanks in advance G



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
Synchronous scrolling in all sheets of a wokbook. Oily Rag Excel Worksheet Functions 2 September 3rd 09 11:46 PM
how do I undo the scroll lock, thscroll lock button does not work scroll lock Excel Discussion (Misc queries) 3 July 19th 08 10:17 PM
Split Wokbook Wanna Learn Excel Discussion (Misc queries) 2 April 18th 08 01:54 PM
Worksheet protection is gone and only wokbook protection can be se Eric C. Excel Discussion (Misc queries) 4 May 2nd 06 04:50 PM
Convert a wokbook to shared mode Don Rouse Excel Programming 2 September 16th 05 04:06 PM


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