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

Hello,
I am wondering if there is a way to just protect cells so text cannot be
changed?
without having the msgbox coming up that states that the cells are
protected?
Or is there a way to suppress that message box from popping up? even when
protection is on?

thanks for any help


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 146
Default locking cells

When you go to protect the sheet, deselect the tick box that says "Select
Locked Cells". Then you won't be able to actual have that cell selected and
attempt to change it.

The problem comes when you try double clicking on that locked cell as it
will still pop up the message.

Sorry I couldn't have been more help.

"greg" wrote:

Hello,
I am wondering if there is a way to just protect cells so text cannot be
changed?
without having the msgbox coming up that states that the cells are
protected?
Or is there a way to suppress that message box from popping up? even when
protection is on?

thanks for any help



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default locking cells

If you use xl2002+, you'll see two options under:
tools|protection|protect sheet
to allow users to select locked cells
and to allow users to select unlocked cells.

If you're using xl2k or earlier, you can protect the worksheet in code:

Sub Auto_Open()
With Worksheets("Sheet99999")
.Unprotect Password:="hi"
.EnableSelection = xlUnlockedCells
.Protect Password:="hi", DrawingObjects:=True, _
Contents:=True, Scenarios:=True
End With
End Sub

In xl2k and below, this setting isn't remembered when you close the workbook and
reopen. Setting it in code was the only way to do this.

greg wrote:

Hello,
I am wondering if there is a way to just protect cells so text cannot be
changed?
without having the msgbox coming up that states that the cells are
protected?
Or is there a way to suppress that message box from popping up? even when
protection is on?

thanks for any help


--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 108
Default locking cells

Thanks,
I will take a look at both.


"greg" wrote in message
...
Hello,
I am wondering if there is a way to just protect cells so text cannot be
changed?
without having the msgbox coming up that states that the cells are
protected?
Or is there a way to suppress that message box from popping up? even when
protection is on?

thanks for any help




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
Locking Cells HS[_2_] New Users to Excel 2 May 18th 09 09:43 PM
Locking Cells gpros32 Excel Worksheet Functions 9 October 9th 08 02:55 PM
Locking Cells phil Excel Discussion (Misc queries) 1 December 6th 06 04:37 PM
locking formula in cells in without locking whole sheet SuziQ Excel Discussion (Misc queries) 1 July 21st 06 03:58 PM
Locking cells Chip Pearson Excel Programming 0 August 17th 03 10:21 PM


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