Using Solver.Ok from VBA Requires R1C1 Style Referencing (153442)
The information in this article applies to:
- Microsoft Excel for Windows 95 7.0a
- Microsoft Excel for Windows 5.0c
- Microsoft Excel for the Macintosh 5.0a
This article was previously published under Q153442 SUMMARY
When you call the Solver.Ok macro function from a Visual Basic for
Applications procedure or macro, you need to use R1C1 notation when
referencing cell ranges on a worksheet. If you use A1 notation in
referencing cell ranges, you may receive the following error message:
Run-Time Error 1004: Error in Formula
REFERENCES
For more information about using SolverOk in Visual Basic for Microsoft
Excel 97, from the Visual Basic Editor, click the Office Assistant, type
"SolverOk," click Search, and then click to view "SolverOk Function."
NOTE: If the Assistant is hidden, click the Office Assistant button on the
Standard toolbar. If the Assistant is not able to answer your query,
please see the following article in the Microsoft Knowledge Base:
176476
OFF: Office Assistant Not Answering Visual Basic Questions
For more information about SolverOk in Microsoft Excel version 7.0, click
Answer Wizard on the Help menu and type:
SolverOk
For more information about Solver.OK in Microsoft Excel version 5.0, choose
Contents in help, Click Reference Information, and then choose the Search
button and type:
Solver.ok
For additional information about getting help with Visual Basic for
Applications, please see the following article in the Microsoft Knowledge
Base:
163435
VBA: Programming Resources for Visual Basic for
Applications
Modification Type: | Minor | Last Reviewed: | 10/10/2006 |
---|
Keywords: | kbdtacode kberrmsg kbhowto kbProgramming KB153442 |
---|
|