Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Disabling a cell for editing or deleting

ActiveSheet.Unprotect Password = "ABCD"
Range("B9").Locked = True
Range("B9").Interior.ColorIndex = 15
ActiveSheet.Protect Password = "ABCD"


You can do multiple cells at once

Range("B9:B20,C15,J31:J35").Locked = True
Range("B9:B20,C15,J31:J35").Interior.ColorIndex = 15


--
Regards,
Tom Ogilvy


Consuelo wrote in message
...
Hello,
I am getting familiar with excel vba and I would like to
know how can I programmatically disable/gray out a cell
once I have entered data in it?

I have tried using lock and deactivate and I could not
get it to work.

Thanks.
Consuelo :-)



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
Deleting cell data without deleting formula Tom Hall Excel Discussion (Misc queries) 4 October 29th 06 04:07 PM
Deleting and editing something in the style box Ken W Excel Discussion (Misc queries) 1 February 28th 06 04:30 PM
how prevent formula in cell from deleting when deleting value???? sh-boom New Users to Excel 1 September 30th 05 06:12 PM
Disabling protected cell selection sneakyzeal Excel Worksheet Functions 1 September 9th 05 05:24 PM
Disabling Cell References camerons New Users to Excel 2 August 27th 05 12:20 AM


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