Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default locked cell issue

i have some cells i have unlocked.

when i protect the worksheet, i can clear the unlocked cells
i can put values in the unlocked cells
but when i try to set the numberformat, it fails, "unable to set the format
property of the range class".
..NumberFormat = "#,##0.00"

unprotect the sheet, it works fine. and i know it's accessing the unlocked cell,
because if i step through, i can see the format change.





--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,986
Default locked cell issue

You can only enter or delete data in the unlocked cells of a protected sheet.
You cannot change the settings without unprotecting. The protection is to
prevent that type of change without the owner's knowledge.

"Gary Keramidas" wrote:

i have some cells i have unlocked.

when i protect the worksheet, i can clear the unlocked cells
i can put values in the unlocked cells
but when i try to set the numberformat, it fails, "unable to set the format
property of the range class".
..NumberFormat = "#,##0.00"

unprotect the sheet, it works fine. and i know it's accessing the unlocked cell,
because if i step through, i can see the format change.





--


Gary




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
Locked worksheet & hyperlinks (w/ select locked cells unchecked) dgold82 Excel Discussion (Misc queries) 1 July 10th 09 09:42 PM
locked cell not locked Wanna Learn Excel Discussion (Misc queries) 1 December 17th 08 06:01 PM
Protection & Locked issue ah Excel Discussion (Misc queries) 1 August 20th 08 08:30 AM
VBA for Cell locked please help peddie Excel Programming 2 August 21st 06 04:09 PM
Put comments on a locked spreadsheet even though cells not locked RDP Excel Worksheet Functions 1 September 11th 05 11:59 PM


All times are GMT +1. The time now is 03:52 PM.

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"