okay I'll ask around, I do have another question which you can probably answer since you are great with macros.
I have written a macro:
Sub Solv_Run()
SolverReset
SolverOk SetCell:="$P$80", MaxMinVal:=2, ValueOf:=0, ByChange:="$O$77", Engine _
:=1, EngineDesc:="GRG Nonlinear"
SolverAdd CellRef:="$O$77", Relation:=4, FormulaText:="integer"
SolverOk SetCell:="$P$80", MaxMinVal:=2, ValueOf:=0, ByChange:="$O$77", Engine _
:=1, EngineDesc:="GRG Nonlinear"
SolverOk SetCell:="$P$80", MaxMinVal:=2, ValueOf:=0, ByChange:="$O$77", Engine _
:=1, EngineDesc:="GRG Nonlinear"
SolverSolve Userfinish:=True
End Sub
and code
Private Sub Worksheet_Change(ByVal Target As Range)
Dim KeyCells As Range
' The variable KeyCells contains the cells that will
' cause an alert when they are changed.
Set KeyCells = Range("F77:N77")
If Not Application.Intersect(KeyCells, Range(Target.Address)) _
Is Nothing Then
Call Solv_Run
MsgBox "Cell " & Target.Address & " has changed."
End If
End Sub
When I manually change something in F77 to N77 it works great, however, all of these values are called from another sheet. When I change it on the other sheet, even though it shows up as changed... the macro does not run. How can I fix this?
Thanks in advance!!!
Bookmarks