Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Locked worksheet & hyperlinks (w/ select locked cells unchecked) | Excel Discussion (Misc queries) | |||
Using Spell Check function in text box when worksheet is protected | Excel Discussion (Misc queries) | |||
Tab Function in Protected Worksheet | Excel Discussion (Misc queries) | |||
Why am I able to type in a cell that is locked and protected? | Excel Worksheet Functions | |||
Heps to design Locked/Unlocked cells in protected worksheet | Excel Discussion (Misc queries) |