Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default referencing Solver.xlam vs. Solver.xla - 2007 vs. 2003

Has anyone a solution to reference issues such as this:

I was asked to create a tool using Solver for use by a co-worker & his
department. They are all using Office 2003 while I am on Office 2007.

My code must reference the 2007 solver add-in, Solver.xlam, while to run on
their PCs it must reference solver.xla. Each round of testing requires that
the tester go thru the steps of 'de-referencing' the xlam and referencing the
xla.

Is there a technique for "conditional referencing" depending on the version
of Excel?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default referencing Solver.xlam vs. Solver.xla - 2007 vs. 2003

If you use late binding, you don't need to reference either solver add-in:

http://peltiertech.com/Excel/SolverVBA.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Duke Carey" wrote in message
...
Has anyone a solution to reference issues such as this:

I was asked to create a tool using Solver for use by a co-worker & his
department. They are all using Office 2003 while I am on Office 2007.

My code must reference the 2007 solver add-in, Solver.xlam, while to run
on
their PCs it must reference solver.xla. Each round of testing requires
that
the tester go thru the steps of 'de-referencing' the xlam and referencing
the
xla.

Is there a technique for "conditional referencing" depending on the
version
of Excel?





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default referencing Solver.xlam vs. Solver.xla - 2007 vs. 2003

Jon -

Hate to sound dense, but your solution specifically references the xla.
Does that mean I have to check to Excel version and call xla or xlam,
depending?



"Jon Peltier" wrote:

If you use late binding, you don't need to reference either solver add-in:

http://peltiertech.com/Excel/SolverVBA.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Duke Carey" wrote in message
...
Has anyone a solution to reference issues such as this:

I was asked to create a tool using Solver for use by a co-worker & his
department. They are all using Office 2003 while I am on Office 2007.

My code must reference the 2007 solver add-in, Solver.xlam, while to run
on
their PCs it must reference solver.xla. Each round of testing requires
that
the tester go thru the steps of 'de-referencing' the xlam and referencing
the
xla.

Is there a technique for "conditional referencing" depending on the
version
of Excel?






  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,081
Default referencing Solver.xlam vs. Solver.xla - 2007 vs. 2003

Jon - ignore my last message. My adult literacy class hasn't helped as much
as it should. The second reading of your site made it clear. Thanks for the
info.

"Jon Peltier" wrote:

If you use late binding, you don't need to reference either solver add-in:

http://peltiertech.com/Excel/SolverVBA.html

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Tutorials and Custom Solutions
Peltier Technical Services, Inc. - http://PeltierTech.com
_______


"Duke Carey" wrote in message
...
Has anyone a solution to reference issues such as this:

I was asked to create a tool using Solver for use by a co-worker & his
department. They are all using Office 2003 while I am on Office 2007.

My code must reference the 2007 solver add-in, Solver.xlam, while to run
on
their PCs it must reference solver.xla. Each round of testing requires
that
the tester go thru the steps of 'de-referencing' the xlam and referencing
the
xla.

Is there a technique for "conditional referencing" depending on the
version
of Excel?






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 2003 + Solver xxsawer Excel Worksheet Functions 3 December 8th 09 10:20 AM
Referencing and loading Solver programatically - how? CodeMonkey Excel Programming 11 May 4th 06 05:27 PM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
Resetting Solver Manually to Fix Solver Bug Stratuser Excel Programming 0 September 13th 04 07:04 PM
Excel 2003 + Solver + C# Jens Thiel[_2_] Excel Programming 0 December 4th 03 03:59 PM


All times are GMT +1. The time now is 04:26 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"