Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Marcro updating cell that is "locked"

I have a worksheet that is a survey. Users press radio
buttons evaluating statements on a scale of 1 to 5 (with
between 5 and 10 questions per worksheet).

On the bottom of the sheet is an average of their score
(ie it changes each time somebody selects a different
scale on one of the questions). I don't want people
selecting the cells (only pushing radio buttons), so I
have locked the worksheet. However, when I do this, the
macro gets an error when it tries to update the cells with
the average score.

How do I work around this. Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 20
Default Marcro updating cell that is "locked"

One thing you can do is (with code) lock the worksheet with
userinterfaceonly = true. However, you need to do this every time the
worksheet opens, otherwise the sheet will revert to regular locked
protection.

The other option would be to have your code unlock the sheet every time it
wants to change the average score, then relock it afterwards.

I think setting worksheet.protect userinterfaceonly:=true is the better
option.

You just need to make sure that the macro knows the password.

Mike
--

__________________________________________________ __________________________
________________
Please reply to newsgroup so everyone can benefit.
Email address is not valid (see sparkingwire.com)
__________________________________________________ __________________________
________________
"Jim" wrote in message
...
I have a worksheet that is a survey. Users press radio
buttons evaluating statements on a scale of 1 to 5 (with
between 5 and 10 questions per worksheet).

On the bottom of the sheet is an average of their score
(ie it changes each time somebody selects a different
scale on one of the questions). I don't want people
selecting the cells (only pushing radio buttons), so I
have locked the worksheet. However, when I do this, the
macro gets an error when it tries to update the cells with
the average score.

How do I work around this. Thanks




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
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell Steve Kay Excel Discussion (Misc queries) 2 August 8th 08 01:54 AM
"CELL("FILENAME") NOT UPDATE AFTER "SAVE AS" ACTION yossie6 Excel Discussion (Misc queries) 1 June 16th 08 12:16 PM
CELL("filename",a1) not updating automatically FiluDlidu Excel Discussion (Misc queries) 0 April 24th 08 08:26 PM
Help!!! Enter "7" in a cell and Excel changes the "7" to "11" immediately!!! [email protected] Excel Discussion (Misc queries) 3 January 5th 07 02:18 PM
Complex if test program possible? If "value" "value", paste "value" in another cell? jseabold Excel Discussion (Misc queries) 1 January 30th 06 10:01 PM


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