LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Solver via VBA on protected sheet problem

Hi
I'm writing an excel + VBA application that uses the
solver add in. It works fine as long as the sheet on which
the target and variable cells are, is unprotected. When I
protect the sheet the solver seems not to do anything.
There are no error messages

I use the following calls to load the model and to run the
solver:
Call Application.Run("Solver.xla!SolverLoad", "N207:N211")
Call Application.Run("Solver.xla!SolverSolve", True, False)

I use these run calls instead of the direct solver
function calls to avoid a compiler error if the reference
to the solver add-in is not set in the VB environment, but
the direct function calls seem to behave similar.

Does anyone know this problem (nothing mentioned in the MS
knowledge base)?
Is there a workaround?
Thank in advance
Regards
Jos
 
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
Using solver function in a locked (protected) worksheet Niels Excel Worksheet Functions 2 November 16th 09 09:55 PM
Can I use solver functions in a protected (locked) worksheet? Niels Excel Discussion (Misc queries) 0 November 16th 09 09:02 AM
Combobox problem in protected sheet Oguz Excel Discussion (Misc queries) 0 March 27th 08 11:26 AM
Interesting Solver problem (Solver encounters an error) MrShorty Excel Discussion (Misc queries) 3 December 22nd 05 10:52 PM
solver problem Donna Excel Worksheet Functions 1 December 4th 05 05:08 PM


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