+ Reply to Thread
Results 1 to 2 of 2

VBA-Code with Solver - Not working after copying worksheet

  1. #1
    Registered User
    Join Date
    12-13-2019
    Location
    Linz, Austria
    MS-Off Ver
    2016
    Posts
    1

    VBA-Code with Solver - Not working after copying worksheet

    Hello!

    I encountered following issue with my code, that includes a solver that should solve with the same parameters row by row.

    It is perfectly operating in a worksheet. I copied the worksheet (incl. the start-button for the code) and in the new worksheet, the solver is operating, but the constraints are not. So the results are false.

    I already checked that the active worksheet is the one I am working in.

    Here's the code:
    Please Login or Register  to view this content.
    Any thoughts why the 2 lines with CellRef are only working in one worksheet?

    Thanks, Chris
    Last edited by davesexcel; 12-13-2019 at 08:04 AM.

  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: VBA-Code with Solver - Not working after copying worksheet

    Must say I have not seen anything obvious that would make solver misbehave. Have you tried stepping through the macro using the F8 button and see what happens? Like i values get updated.

    Alf

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Copying an Existing Macro From Worksheet To Another Worksheet View Code
    By Quivolt in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-26-2017, 04:02 AM
  2. copying into new worksheet with loop (not working)
    By ammartino44 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-11-2015, 02:25 PM
  3. [SOLVED] Copying data from one sheet to another, VBA code not working
    By scokaw in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-05-2013, 08:02 PM
  4. VBA code for copying a worksheet and pasting it as a new worksheet in Excel
    By eemiller1997 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-27-2012, 11:56 AM
  5. Same code not working - copying non-contiguous range
    By wonderdunder in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2010, 05:52 AM
  6. Adjusted code for copying data not working
    By Pasha81 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-12-2009, 01:00 PM
  7. copying from one worksheet to another no longer working
    By -Brian-H- in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-27-2008, 12:21 PM

Tags for this Thread

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