Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 6
Default Using solver function in a locked (protected) worksheet

I have made a worksheet where I am using the solver function to optimize a
blend of products. This works perfect. Now I want to lock (protect) some
areas of the worksheet, but when doing so the solver function will not work.

Following translated message arrives:
The active document is not a worksheet, is protected or shared.

Hope someone can help me.

Best ragards,

Niels

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 155
Default Using solver function in a locked (protected) worksheet

Hi Niels,

I have never used solver before but I have some sugestions you may try.
First, try and unlock the cells that solver references by right clicking the
cell, selecting Format Cells, then the Protection tab. Uncheck "Locked".
Protect the sheet and see if the error comes up.

If it does, you can write a macro that will unprotect your worksheet, run
the solver, then reprotect the worksheet. Use the Macro recorder to do this,
then make an icon for your toolbar and assign the macro to it for easy
access. Another way is to have a macro that simply protects and unprotects,
and you can run the solver when you need to.

Let me know if any of this helps or if you need macro help.

Squeaky


"Niels" wrote:

I have made a worksheet where I am using the solver function to optimize a
blend of products. This works perfect. Now I want to lock (protect) some
areas of the worksheet, but when doing so the solver function will not work.

Following translated message arrives:
The active document is not a worksheet, is protected or shared.

Hope someone can help me.

Best ragards,

Niels

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 690
Default Using solver function in a locked (protected) worksheet

Hi. Solver needs to adjust cells on the worksheet.
I believe that when Solver runs, one of the first things it does is
check to make sure the worksheet in not protected. It does not have
enough logic to check if only the changing cells are unlocked.
I would suggest to unprotected the worksheet.
Or perhaps make an unprotected copy of the worksheet via vba, and run
solver on that.
= = = = =
Dana DeLouis


On 11/12/09 10:35 AM, Niels wrote:
I have made a worksheet where I am using the solver function to optimize a
blend of products. This works perfect. Now I want to lock (protect) some
areas of the worksheet, but when doing so the solver function will not work.

Following translated message arrives:
The active document is not a worksheet, is protected or shared.

Hope someone can help me.

Best ragards,

Niels

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
Using Spell Check function in text box when worksheet is protected Paul Excel Discussion (Misc queries) 0 February 8th 07 04:29 PM
Tab Function in Protected Worksheet TRM Excel Discussion (Misc queries) 1 September 27th 06 07:37 PM
Why am I able to type in a cell that is locked and protected? VikyTurner Excel Worksheet Functions 0 November 18th 05 08:51 PM
Heps to design Locked/Unlocked cells in protected worksheet Kevin Excel Discussion (Misc queries) 0 December 30th 04 07:09 AM


All times are GMT +1. The time now is 06:39 PM.

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"