Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Using Solver with Excel 2007 VBA

It seems that Solver code such as Application.Run "solver.xla!solverreset"
has to be changed to Application.Run "solver.xlam!solverreset"
when using Excel 2007, even in "compatability mode".
With the 'xlam' file extension, will this code still work in Excel 2003 and
if not, is there any way to write a VBA project using solver that will work
in both Excel 2003 and Excel 2007?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,173
Default Using Solver with Excel 2007 VBA

Bandicoot

Simply check the version

If Application.Version <12
'Do stuff for 2003 and before
End if

--
HTH
Nick Hodge
Microsoft MVP - Excel
Southampton, England
DTHIS
web:
www.nickhodge.co.uk
blog: www.nickhodge.co.uk/blog/

FREE UK OFFICE USER GROUP MEETING, MS READING, 27th APRIL 2007
www.officeusergroup.co.uk

"Bandicoot" wrote in message
...
It seems that Solver code such as Application.Run "solver.xla!solverreset"
has to be changed to Application.Run "solver.xlam!solverreset"
when using Excel 2007, even in "compatability mode".
With the 'xlam' file extension, will this code still work in Excel 2003
and
if not, is there any way to write a VBA project using solver that will
work
in both Excel 2003 and Excel 2007?


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
Excel 2007 & Solver Don White Excel Discussion (Misc queries) 2 January 29th 09 02:19 PM
Solver Add in at startup in excel 2007 Paul Setting up and Configuration of Excel 0 December 18th 07 11:42 AM
Solver in Excel 2007 datawired Excel Programming 3 November 20th 06 10:27 PM
Where is Solver in Excel 2007? Javierh Excel Discussion (Misc queries) 1 August 13th 06 11:04 PM
Solver in excel 2007 Ben Enfield Excel Discussion (Misc queries) 2 May 29th 06 09:57 PM


All times are GMT +1. The time now is 08:43 AM.

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

About Us

"It's about Microsoft Excel"