Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Just wondering if theres a way i can do a simple "i
Worksheets("3.Data") is protected then" also how would i assign a value to a cell using code? i.e. say A1 "blah" ? it didnt like cells(a1)="blah" which i assumed would be th way. thank -- Message posted from http://www.ExcelForum.com |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi
For your first question try If Worksheets("3.Data").ProtectContents = True Then MsgBox "The contents of shet '3-data 'are protected." End If Second question use something like Range("A1").value="text" or cells(1,1).value="text" -----Original Message----- Just wondering if theres a way i can do a simple "if Worksheets("3.Data") is protected then" also how would i assign a value to a cell using code? i.e. say A1 = "blah" ? it didnt like cells(a1)="blah" which i assumed would be the way. thanks --- Message posted from http://www.ExcelForum.com/ . |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to Check if Worksheet TAB is protected or Not | Excel Discussion (Misc queries) | |||
Spell check when worksheet is protected | Excel Discussion (Misc queries) | |||
unprotect check box in protected worksheet | Excel Discussion (Misc queries) | |||
spell check for protected worksheet for Excel 97 | Excel Discussion (Misc queries) | |||
Why doesn't spell check work on a protected worksheet? | Excel Worksheet Functions |