+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 VBA Error #450

  1. #1
    Registered User
    Join Date
    05-22-2011
    Location
    chennai
    MS-Off Ver
    Excel 2003
    Posts
    71

    Excel 2007 VBA Error #450

    Hi

    I have created a macro that works perfectly in 2010 but when I try to run 2007 it pops up an error message "Run-time error '450' Wrong number of arguments or invalid property assignment'. I use solver addin - I have attached the excel file - In that sheet called "Multilinesup" and the macro button is "Run Optimizer".

    Please help.

    I'm unable to upload the file here as it exceeds 1 MB so below is the direct link

    http://excelbyjoe.com/MEF/wp-content...s-v3-2007.xlsm

    Thanks
    Thiru

  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: Excel 2007 VBA Error #450

    Looking at your macro you call Engine 2 i.e the "Simplex Model" but only in excel 2010 and later you have 3 different models for solver. For excel 2007 and 2003 you can only select select a linear or a non liner model (see options excel 2007) this is why you get an error message "ivalid property assignment"

    To fix this you need to remover the "2" and the "Simplex LP" from the line

    Please Login or Register  to view this content.
    and probably add a line like this:

    Please Login or Register  to view this content.
    Still I'm not sure the excel 2007 solver is powerfull enough to solve this problem. My best advice to you would be to install the "OpenSolver" as this intergrates nicely into excel 2003, 2007 and 2010.

    This is a free program developed by the University of Auckland, NZ and a much more powerfull solver than the excel one. Still it only solves linear problems but that should not be a problem in your case.

    Alf

    Ps sorry it took some time before I could help you with you problem but I've been away for some time.

+ 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. Run time error 75 (Path/File Access Error) - Excel 2007 on XP SP3
    By Portuga in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-30-2014, 10:39 AM
  2. [SOLVED] error in excel 2007
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-07-2013, 06:53 AM
  3. [SOLVED] VBA Compile Error in Excel 2007 Only NOT 2007 Professional
    By SAsplin in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-15-2013, 07:29 AM
  4. [SOLVED] run-time error '1004' application-defined or object-defined error - Excel 2007
    By kaurka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-06-2012, 02:46 AM
  5. [SOLVED] VBA Excel 2007 : Autofit Merge Cells Error "Run-time error '13': Type Mismatch"
    By Hudas in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-18-2012, 04:10 PM
  6. excel 2007 error
    By ggomez43 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-24-2009, 12:42 PM
  7. #value! error in excel 2007
    By excel_use in forum Excel General
    Replies: 1
    Last Post: 03-17-2007, 10:51 AM

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