dagur777
Chemical
- Nov 11, 2001
- 18
I found one spreadsheet using old Windows 95 Excel macro. I tried to run the macro, there was a run-time error
Run-time error “1004”
Your program contains an invalid external reference to a worksheet
Verify the path, workbook, and range name or cell reference are correct, and try again
Sub RunSolver()
Application.ExecuteExcel4Macro String:= _
"[SOLVER.XLA]SOLVER!SOLVER.SOLVE()"
Call Constraints
End Sub
The error message is highlighted as
"Application.ExecuteExcel4Macro String:=
"[SOLVER.XLA]SOLVER!SOLVER.SOLVE()"
Could anyone tell me how to correct it (using MS Excel 2000)? I notice that new Solver library uses SOLVER32.DLL and SOLVER.XLA. (the old file Windows 95 uses SOLVER.DLL and SOLVER.XLA)
If the above "Application.ExecuteExcel4Macro String:=...." needs to be rewrite, how to do it?
Thanks
Run-time error “1004”
Your program contains an invalid external reference to a worksheet
Verify the path, workbook, and range name or cell reference are correct, and try again
Sub RunSolver()
Application.ExecuteExcel4Macro String:= _
"[SOLVER.XLA]SOLVER!SOLVER.SOLVE()"
Call Constraints
End Sub
The error message is highlighted as
"Application.ExecuteExcel4Macro String:=
"[SOLVER.XLA]SOLVER!SOLVER.SOLVE()"
Could anyone tell me how to correct it (using MS Excel 2000)? I notice that new Solver library uses SOLVER32.DLL and SOLVER.XLA. (the old file Windows 95 uses SOLVER.DLL and SOLVER.XLA)
If the above "Application.ExecuteExcel4Macro String:=...." needs to be rewrite, how to do it?
Thanks