Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,101
Default lock cells based on formula result

I have a formula in Column O7:O37 of a spreadsheet. I need cells B7:N37 to
lock when the value from the formula exceeds a certain threshold. Is this
possible?


Thanks for the help,
Mike


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,365
Default lock cells based on formula result

Possible, but a little difficult. Ordinarily this would be handled through
some VBA code (macro) based on an event triggering on the sheet, such as a
value in one of the O7:O37 cells changing. However, changes caused by a
formula don't trigger the event. What has to be done is track back through
those formulas to find where a value is entered/changed within the workbook
that affects the results of those cells. Then some Worksheet_Change() event
handling at that point can be done to deal with:
unprotecting the sheet,
locking the appropriate column B:N cell(s)
putting the sheet back into protected state so that the locks take effect.

The other side of the coin is when do you UNLOCK those cells after they've
been locked down?

But, yes, in theory it's possible to do what you want.

"MIke" wrote:

I have a formula in Column O7:O37 of a spreadsheet. I need cells B7:N37 to
lock when the value from the formula exceeds a certain threshold. Is this
possible?


Thanks for the help,
Mike


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
Lock formula cells? EllenM Excel Discussion (Misc queries) 5 June 20th 07 09:04 PM
how can I have a formula result based on multiple criteria/columns nicky_p New Users to Excel 1 July 5th 06 01:45 PM
Change font and background color of several cells based on result of a formula Zenaida Excel Discussion (Misc queries) 2 April 27th 06 06:46 PM
Automatically resize columns based on new formula result Kevin Ward Excel Discussion (Misc queries) 2 February 13th 06 06:08 PM
conditional formatting based on another cells formula result kstarkey Excel Discussion (Misc queries) 3 October 5th 05 09:07 PM


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