SteveGregory
Structural
- Jul 18, 2006
- 554
This spreadsheet started out as a Quattro Pro (DOS) sheet and I brought it in to Excel some time ago. Recently, I discovered a quirk while editing a formula. In Excel 2007, I went to Options> Advanced > Lotus Compatibility Options and unchecked a couple of options called Transition Formula Evaluation and Transition Formula Entry. Then I used "Apply Names" to make all of the formulas work properly.
Originally, I used Excel 2000 to record the macro. Since I made the changes noted above, the constraints stored in the range named "OPT" don't seem to work with named cells like "Variable" but do work with "$B$80". So, I changed those refences.
But now after the macro runs, the current cell selected is now the cell holding the solver solution. Before, the macro used to run without moving the current cell selection. This is driving me crazy. Here is my simple code. I assigned the macro to a control button as well as the shortcut below.
Sub Maximum_Moment()
'
' Maximum_Moment Macro
' Macro recorded 10/1/2007 by Steve Gregory For Maximum moment or using the solver
'
' Keyboard Shortcut: Ctrl+m
'
SolverLoad loadArea:=Range("OPT")
SolverOptions Iterations:=200
SolverSolve UserFinish:=True
End Sub
Originally, I used Excel 2000 to record the macro. Since I made the changes noted above, the constraints stored in the range named "OPT" don't seem to work with named cells like "Variable" but do work with "$B$80". So, I changed those refences.
But now after the macro runs, the current cell selected is now the cell holding the solver solution. Before, the macro used to run without moving the current cell selection. This is driving me crazy. Here is my simple code. I assigned the macro to a control button as well as the shortcut below.
Sub Maximum_Moment()
'
' Maximum_Moment Macro
' Macro recorded 10/1/2007 by Steve Gregory For Maximum moment or using the solver
'
' Keyboard Shortcut: Ctrl+m
'
SolverLoad loadArea:=Range("OPT")
SolverOptions Iterations:=200
SolverSolve UserFinish:=True
End Sub