A Microsoft Excel forum. ExcelBanter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » ExcelBanter forum » Excel Newsgroups » Excel Programming
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Splash screen stops Solver add-in working



 
 
Thread Tools Display Modes
  #1  
Old July 22nd 04, 10:09 PM posted to microsoft.public.excel.programming
keepITcool
external usenet poster
 
Posts: 2,253
Default Splash screen stops Solver add-in working


The solver addin will not LOAD until called.
(and it will load on deactivate/activate the addin)

To see this behaviour:
Open a new instance of Excel,
Open VBE
Open Project explorer => Solver.xla NOT loaded.

Now in Excel Choose Tools/Solve and it gets loaded.

This could be the code..

Function SolverOpen() As Boolean
On Error Resume Next
'Loaded?
Set wb = Workbooks("solver.xla")
If Err <> 0 Then Set wb = _
Workbooks.Open(AddIns("Solver Add-in").FullName)
If Err <> 0 Then SolverOpen = True
End Function

Sub tst()
If Not SolverOpen Then MsgBox "Can't load Solver Add-In"
End Sub





--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


Will wrote :

> Hello
>
> Can anyone help me with this problem I'm having:
>
> I have a spreadsheet that uses the Excel Solver add-in.
> This spreadsheet also has a form that is called from the
> workbook_open macro to display on starting the spreadsheet.
> I have found that if the screen is displayed, the macro
> that uses the solver add-in does not work - I get the
> message "Solver: an unexpected internal error occurred, or
> available memory was exhausted". If the form is not
> displayed on opening the solver macro works OK.
> As far as I can tell the form is being proplerly unloaded
> when it closes.
>
> I have found that if I manually uninstall the solver add-
> in, then re-install it (from the Tools - Add-In menu) it
> starts working again.
> But if I try and do this with code in the workbook_open
> macro it either makes no difference or
> causes "Method 'Range' of object '_Global' failed" errors
> further along in the workbook_open macro.
>
> Anyone have any ideas how to get around this?
>
> Cheers
>
> Will


Ads
  #2  
Old July 23rd 04, 09:37 AM posted to microsoft.public.excel.programming
external usenet poster
 
Posts: n/a
Default Splash screen stops Solver add-in working

Thanks for that, but it doesn't seem to have helped.
The "Can't load Solver Add-In" message always appears. And
the solver still doesn't work.

In this workbook I'm working on I don't get a "Solve"
option in the Tools menu, although when I open a new blank
workbook I do.

The solver add-in was working OK before I added the Splash
form to show on opening, but I don't see why this would
affect it.

Cheers

Will
>-----Original Message-----
>
>The solver addin will not LOAD until called.
>(and it will load on deactivate/activate the addin)
>
>To see this behaviour:
>Open a new instance of Excel,
>Open VBE
>Open Project explorer => Solver.xla NOT loaded.
>
>Now in Excel Choose Tools/Solve and it gets loaded.
>
>This could be the code..
>
>Function SolverOpen() As Boolean
>On Error Resume Next
>'Loaded?
>Set wb = Workbooks("solver.xla")
>If Err <> 0 Then Set wb = _
> Workbooks.Open(AddIns("Solver Add-in").FullName)
>If Err <> 0 Then SolverOpen = True
>End Function
>
>Sub tst()
>If Not SolverOpen Then MsgBox "Can't load Solver Add-In"
>End Sub
>
>
>
>
>
>--
>keepITcool
>| www.XLsupport.com | keepITcool chello nl | amsterdam
>
>
>Will wrote :
>
>> Hello
>>
>> Can anyone help me with this problem I'm having:
>>
>> I have a spreadsheet that uses the Excel Solver add-in.
>> This spreadsheet also has a form that is called from

the
>> workbook_open macro to display on starting the

spreadsheet.
>> I have found that if the screen is displayed, the macro
>> that uses the solver add-in does not work - I get the
>> message "Solver: an unexpected internal error occurred,

or
>> available memory was exhausted". If the form is not
>> displayed on opening the solver macro works OK.
>> As far as I can tell the form is being proplerly

unloaded
>> when it closes.
>>
>> I have found that if I manually uninstall the solver

add-
>> in, then re-install it (from the Tools - Add-In menu)

it
>> starts working again.
>> But if I try and do this with code in the workbook_open
>> macro it either makes no difference or
>> causes "Method 'Range' of object '_Global' failed"

errors
>> further along in the workbook_open macro.
>>
>> Anyone have any ideas how to get around this?
>>
>> Cheers
>>
>> Will

>
>.
>

  #3  
Old July 23rd 04, 09:50 AM posted to microsoft.public.excel.programming
keepITcool
external usenet poster
 
Posts: 2,253
Default Splash screen stops Solver add-in working


have you debugged WHY you get the "cant load message".
because it looks like THAT's exactly the problem.

maybe breakup the code and assign the addin to a variable as well
so you can more easily traced WHY it is giving that message.

without your code i can give no further help.



--
keepITcool
| www.XLsupport.com | keepITcool chello nl | amsterdam


> wrote :

> Thanks for that, but it doesn't seem to have helped.
> The "Can't load Solver Add-In" message always appears. And
> the solver still doesn't work.
>
> In this workbook I'm working on I don't get a "Solve"
> option in the Tools menu, although when I open a new blank
> workbook I do.
>
> The solver add-in was working OK before I added the Splash
> form to show on opening, but I don't see why this would
> affect it.
>
> Cheers
>
> Will
> > -----Original Message-----
> >
> > The solver addin will not LOAD until called.
> > (and it will load on deactivate/activate the addin)
> >
> > To see this behaviour:
> > Open a new instance of Excel,
> > Open VBE
> >Open Project explorer => Solver.xla NOT loaded.
> >
> > Now in Excel Choose Tools/Solve and it gets loaded.
> >
> > This could be the code..
> >
> > Function SolverOpen() As Boolean
> > On Error Resume Next
> > 'Loaded?
> > Set wb = Workbooks("solver.xla")
> >If Err <> 0 Then Set wb = _
> > Workbooks.Open(AddIns("Solver Add-in").FullName)
> >If Err <> 0 Then SolverOpen = True
> > End Function
> >
> > Sub tst()
> > If Not SolverOpen Then MsgBox "Can't load Solver Add-In"
> > End Sub
> >
> >
> >
> >
> >
> > --
> > keepITcool
> > > www.XLsupport.com | keepITcool chello nl | amsterdam

> >
> >
> > Will wrote :
> >
> >> Hello
> >>
> >> Can anyone help me with this problem I'm having:
> >>
> >> I have a spreadsheet that uses the Excel Solver add-in.
> >> This spreadsheet also has a form that is called from

> the
> >> workbook_open macro to display on starting the

> spreadsheet.
> >> I have found that if the screen is displayed, the macro
> >> that uses the solver add-in does not work - I get the
> >> message "Solver: an unexpected internal error occurred,

> or
> >> available memory was exhausted". If the form is not
> >> displayed on opening the solver macro works OK.
> >> As far as I can tell the form is being proplerly

> unloaded
> >> when it closes.
> >>
> >> I have found that if I manually uninstall the solver

> add-
> >> in, then re-install it (from the Tools - Add-In menu)

> it
> >> starts working again.
> >> But if I try and do this with code in the workbook_open
> >> macro it either makes no difference or
> >> causes "Method 'Range' of object '_Global' failed"

> errors
> >> further along in the workbook_open macro.
> >>
> >> Anyone have any ideas how to get around this?
> >>
> >> Cheers
> >>
> >> Will

> >
> > .
> >


 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Splash Screen John Calder New Users to Excel 2 May 11th 09 03:22 AM
Splash Screen Brooke Excel Discussion (Misc queries) 5 March 25th 08 03:58 PM
splash screen Dave F Excel Discussion (Misc queries) 2 March 16th 07 05:00 PM
Splash Screen Lee Excel Programming 0 December 1st 03 05:08 PM
Splash Screen Libby -xl97 Excel Programming 2 November 10th 03 09:10 PM


All times are GMT +1. The time now is 12:13 PM.


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