PC Review


Reply
Thread Tools Rate Thread

Crashing Bug in Solver.XLAM for Excel 2007???

 
 
Michael
Guest
Posts: n/a
 
      6th Dec 2007
If you create an xla (or xlam) file in Excel 2007 and add a VBA project
reference to Solver.XLAM using Tools->References, the xla (or xlam) file will
crash Excel when it is loaded. You must also add a VBA module (e.g.,
Module1) to the addin and place a dummy routine in the module such as:

Sub Test()
End Sub

Has anyone else experienced this problem with Excel 2007?
 
Reply With Quote
 
 
 
 
Jon Peltier
Guest
Posts: n/a
 
      7th Dec 2007
You mean you have an add-in that otherwise has no code?

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


"Michael" <(E-Mail Removed)> wrote in message
news:F83CA499-0F62-483D-8118-(E-Mail Removed)...
> If you create an xla (or xlam) file in Excel 2007 and add a VBA project
> reference to Solver.XLAM using Tools->References, the xla (or xlam) file
> will
> crash Excel when it is loaded. You must also add a VBA module (e.g.,
> Module1) to the addin and place a dummy routine in the module such as:
>
> Sub Test()
> End Sub
>
> Has anyone else experienced this problem with Excel 2007?



 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      7th Dec 2007
Of course not. It happens from the most complicated case to the simplest
case of no code being present. I simply thought that would be easier to
reproduce for problem resolution.

Michael

"Jon Peltier" wrote:

> You mean you have an add-in that otherwise has no code?
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> Peltier Technical Services, Inc. - http://PeltierTech.com
> _______
>
>
> "Michael" <(E-Mail Removed)> wrote in message
> news:F83CA499-0F62-483D-8118-(E-Mail Removed)...
> > If you create an xla (or xlam) file in Excel 2007 and add a VBA project
> > reference to Solver.XLAM using Tools->References, the xla (or xlam) file
> > will
> > crash Excel when it is loaded. You must also add a VBA module (e.g.,
> > Module1) to the addin and place a dummy routine in the module such as:
> >
> > Sub Test()
> > End Sub
> >
> > Has anyone else experienced this problem with Excel 2007?

>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th Dec 2007
I haven't used Solver much in Excel 2007 yet, so I can't say anything too
profound. In any version of Excel, I avoid setting the Solver reference,
because I don't know who might use the workbook, on what version of Excel.
It's not as elegant, but I've found that it's much more robust, to use
Application.Run to invoke Solver, as I describe in this article:

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

YMMV.

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


"Michael" <(E-Mail Removed)> wrote in message
news:C14BA584-1ED5-4E42-81F3-(E-Mail Removed)...
> Of course not. It happens from the most complicated case to the simplest
> case of no code being present. I simply thought that would be easier to
> reproduce for problem resolution.
>
> Michael
>
> "Jon Peltier" wrote:
>
>> You mean you have an add-in that otherwise has no code?
>>
>> - Jon
>> -------
>> Jon Peltier, Microsoft Excel MVP
>> Tutorials and Custom Solutions
>> Peltier Technical Services, Inc. - http://PeltierTech.com
>> _______
>>
>>
>> "Michael" <(E-Mail Removed)> wrote in message
>> news:F83CA499-0F62-483D-8118-(E-Mail Removed)...
>> > If you create an xla (or xlam) file in Excel 2007 and add a VBA project
>> > reference to Solver.XLAM using Tools->References, the xla (or xlam)
>> > file
>> > will
>> > crash Excel when it is loaded. You must also add a VBA module (e.g.,
>> > Module1) to the addin and place a dummy routine in the module such as:
>> >
>> > Sub Test()
>> > End Sub
>> >
>> > Has anyone else experienced this problem with Excel 2007?

>>
>>
>>



 
Reply With Quote
 
Michael
Guest
Posts: n/a
 
      7th Dec 2007
I'm familiar with using late binding as well but I already have many xla's
that use early binding and don't really care to change them if I don't have
to. It's not that I'm lazy but I have other things to do as well. I would
not expect this to fail in the newer version.

Michael

"Jon Peltier" wrote:

> I haven't used Solver much in Excel 2007 yet, so I can't say anything too
> profound. In any version of Excel, I avoid setting the Solver reference,
> because I don't know who might use the workbook, on what version of Excel.
> It's not as elegant, but I've found that it's much more robust, to use
> Application.Run to invoke Solver, as I describe in this article:
>
> http://peltiertech.com/Excel/SolverVBA.html
>
> YMMV.
>
> - Jon
> -------
> Jon Peltier, Microsoft Excel MVP
> Tutorials and Custom Solutions
> Peltier Technical Services, Inc. - http://PeltierTech.com
> _______
>
>
> "Michael" <(E-Mail Removed)> wrote in message
> news:C14BA584-1ED5-4E42-81F3-(E-Mail Removed)...
> > Of course not. It happens from the most complicated case to the simplest
> > case of no code being present. I simply thought that would be easier to
> > reproduce for problem resolution.
> >
> > Michael
> >
> > "Jon Peltier" wrote:
> >
> >> You mean you have an add-in that otherwise has no code?
> >>
> >> - Jon
> >> -------
> >> Jon Peltier, Microsoft Excel MVP
> >> Tutorials and Custom Solutions
> >> Peltier Technical Services, Inc. - http://PeltierTech.com
> >> _______
> >>
> >>
> >> "Michael" <(E-Mail Removed)> wrote in message
> >> news:F83CA499-0F62-483D-8118-(E-Mail Removed)...
> >> > If you create an xla (or xlam) file in Excel 2007 and add a VBA project
> >> > reference to Solver.XLAM using Tools->References, the xla (or xlam)
> >> > file
> >> > will
> >> > crash Excel when it is loaded. You must also add a VBA module (e.g.,
> >> > Module1) to the addin and place a dummy routine in the module such as:
> >> >
> >> > Sub Test()
> >> > End Sub
> >> >
> >> > Has anyone else experienced this problem with Excel 2007?
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Jon Peltier
Guest
Posts: n/a
 
      7th Dec 2007
It's not a major change if all you're changing is how Solver is handled.

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


"Michael" <(E-Mail Removed)> wrote in message
news:07BA8831-2631-4D03-B810-(E-Mail Removed)...
> I'm familiar with using late binding as well but I already have many xla's
> that use early binding and don't really care to change them if I don't
> have
> to. It's not that I'm lazy but I have other things to do as well. I
> would
> not expect this to fail in the newer version.
>
> Michael
>
> "Jon Peltier" wrote:
>
>> I haven't used Solver much in Excel 2007 yet, so I can't say anything too
>> profound. In any version of Excel, I avoid setting the Solver reference,
>> because I don't know who might use the workbook, on what version of
>> Excel.
>> It's not as elegant, but I've found that it's much more robust, to use
>> Application.Run to invoke Solver, as I describe in this article:
>>
>> http://peltiertech.com/Excel/SolverVBA.html
>>
>> YMMV.
>>
>> - Jon
>> -------
>> Jon Peltier, Microsoft Excel MVP
>> Tutorials and Custom Solutions
>> Peltier Technical Services, Inc. - http://PeltierTech.com
>> _______
>>
>>
>> "Michael" <(E-Mail Removed)> wrote in message
>> news:C14BA584-1ED5-4E42-81F3-(E-Mail Removed)...
>> > Of course not. It happens from the most complicated case to the
>> > simplest
>> > case of no code being present. I simply thought that would be easier
>> > to
>> > reproduce for problem resolution.
>> >
>> > Michael
>> >
>> > "Jon Peltier" wrote:
>> >
>> >> You mean you have an add-in that otherwise has no code?
>> >>
>> >> - Jon
>> >> -------
>> >> Jon Peltier, Microsoft Excel MVP
>> >> Tutorials and Custom Solutions
>> >> Peltier Technical Services, Inc. - http://PeltierTech.com
>> >> _______
>> >>
>> >>
>> >> "Michael" <(E-Mail Removed)> wrote in message
>> >> news:F83CA499-0F62-483D-8118-(E-Mail Removed)...
>> >> > If you create an xla (or xlam) file in Excel 2007 and add a VBA
>> >> > project
>> >> > reference to Solver.XLAM using Tools->References, the xla (or xlam)
>> >> > file
>> >> > will
>> >> > crash Excel when it is loaded. You must also add a VBA module
>> >> > (e.g.,
>> >> > Module1) to the addin and place a dummy routine in the module such
>> >> > as:
>> >> >
>> >> > Sub Test()
>> >> > End Sub
>> >> >
>> >> > Has anyone else experienced this problem with Excel 2007?
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom Excel 2007 Tab disappears when editing an XLAM add-in file JeffreyW Microsoft Excel Programming 10 8th Apr 2009 12:32 AM
Excel 2007 & Solver Don White Microsoft Excel Misc 2 29th Jan 2009 02:19 PM
Solver for Excel 2002 crashing ?? maksym.senchyna@gmail.com Microsoft Excel Discussion 0 7th Dec 2007 01:02 PM
referencing Solver.xlam vs. Solver.xla - 2007 vs. 2003 =?Utf-8?B?RHVrZSBDYXJleQ==?= Microsoft Excel Programming 3 20th Nov 2007 03:48 PM
Solver in excel 2007 =?Utf-8?B?QmVuIEVuZmllbGQ=?= Microsoft Excel Misc 2 29th May 2006 09:57 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:00 AM.