Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 8
Default Accessing solver in XL2003 from vb

I have a vb program that loads an Xl spreadhseet with all the necessary
formulas stored in it, loads data into it and calls solver by calling an XL
macro with the appropriate settings in it. Under XL 97 adn W2K this worked
beautifully. Unfortunately when I took it to XP and XL 2003 it crashes with
an "unexpected error". If I load the spreadsheet and enter the data
manually, the macro runs just fine. So the issue is why does solver crash
when the macro is called from vb? I strongly suspect this is a "security"
issue, but I haven't been able to fix it (notice I didn't say "solve it").
Does anyone know what I have to do to make this go. Alternatively, does
anyone know if I can access solver32.dll directly from vb? Is so how do I
find out what functions to call and how to declare them in vb?
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing the Solver Add-in in VBA BigHairyUglyGuy Excel Discussion (Misc queries) 1 April 8th 08 03:21 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
XL2003 Add Ins Melissa[_2_] Excel Programming 1 October 22nd 03 07:24 PM
xl2003 and VS Alex T Excel Programming 2 September 22nd 03 10:26 AM
xl2003 GUS Excel Programming 0 September 18th 03 08:16 PM


All times are GMT +1. The time now is 05:09 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"