+ Reply to Thread
Results 1 to 2 of 2

Macro Cell Error At Cell message when running Solver in VBA

  1. #1
    Registered User
    Join Date
    05-14-2013
    Location
    Manchester, USA
    MS-Off Ver
    Excel 2007
    Posts
    1

    Macro Cell Error At Cell message when running Solver in VBA

    Hi,

    I have written a macro to open a temporary workbook, copy/paste data from a main workbook, and then run Solver on the pasted data in the temporary workbook. When the macro executes, I keep getting a Macro Error display box, which reads: "Macro error at cell: [SOLVER.XLAM]Excel4Functions!A25." The box has options to Halt, Step, Continue, and a grayed-out GoTo. If I manually run Solver, I do not get the error box. Is there a way to correct whatever is causing this or, at a minimum, prevent the error box from displaying. This is the code I am using:

    Please Login or Register  to view this content.

  2. #2
    Forum Expert Alf's Avatar
    Join Date
    03-13-2004
    Location
    Gothenburg/Mullsjoe, Sweden
    MS-Off Ver
    Excel 2019 and not sure I like it
    Posts
    4,758

    Re: Macro Cell Error At Cell message when running Solver in VBA

    If you could upload the "T.xlsx" file with the copied values you stand a better chance of getting help.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1