How to freeze dynamic NAME with SOLVER
I finally got it.
We are sharing the range GROUP1 with Solver. When WE are changing cell
values in the range, we want the dynamic re-ranger to adjust the names. When
we run Solver, we want the ranges frozen.
Add the following routines to the module (NOT worksheet code area):
Sub freeze()
Application.EnableEvents = False
End Sub
Sub thaw()
Application.EnableEvents = True
End Sub
1. before running Solver, always run freeze
2. after running Solver, run thaw
--
Gary's Student
"rml" wrote:
From my previous post yesterday "DYNAMIC NAME"(worksheet function forum), I
had just been fed by Gary's
Student - single handedly- how to define a dynamic name by VBE....I need to
go to the next level....
The Dynamic Name must be static when I go to the SOLVER
function....Considering that the NAME contains the specific cell refs.
subject to SOLVER's fill in the blanks?
I hope Gary's Student can read this thread...to further continue the
multitask involve on the spreadsheet I am doing.
|