Jump to content



Featured Articles

Check out the latest featured articles.

File Library

Check out the latest downloads available in the File Library.

New Article

Product Viscosity vs. Shear

Featured File

Vertical Tank Selection

New Blog Entry

Low Flow in Pipes- posted in Ankur's blog

Excel 2007 Versions Of Spreadsheet


This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic
Share this topic:
| More

#1 Chris Haslego

Chris Haslego

    Administrator

  • Admin
  • 191 posts

Posted 14 April 2008 - 02:05 PM

As many of you move over to the 2007 version of MS Excel, you may notice compatibility problems with spreadsheet that invoke the Solver function. We've updated two (2) such tools on the site.

Steam Tracing Spreadsheet (Excel 2007 edition)

Pipe Sizing Tool (Excel 2007 edition)

In case some of you have other spreadsheets, here is an example of the types of changes that we've had to make.

Valid code for previous versions of MS Excel:
CODE
SolverOK SetCell:="$P$148", MaxMinVal:=2, ValueOf:="0", ByChange:=_ "$O$144,$O$145,$K$150,$K$182"
SolverSolve True


Replacement code for MS Excel 2007:
CODE
Application.Run "solver.xlam!solverok", "$P$148", "2", "0", "$O$144,$O$145,$K$150,$K$182"
Application.Run "solver.xlam!solversolve", True


I hope this information is helpful. The new versions have also been posted on the pages where the tools were first introduced on the site.

#2 sheiko

sheiko

    Gold Member

  • ChE Plus Subscriber
  • 732 posts

Posted 02 November 2009 - 04:40 PM

Pipe Sizing Tool (Excel 2007 edition)

Just to let you know that in the article "Updated Rules for Pipe Sizing" related to the pipe sizing spreadsheet, the parameter M of the Generaux equation: M=(a'+b')*E*P/(17.9*K*Y) is equal to 0.065 (as a'+b'=0.4, E=0.5, P=150, K=0.07 and Y=365) and not 0.575 as written in the article. It shall affect the results given by the spreadsheet in some proportion...

Edited by sheiko, 07 November 2009 - 01:10 PM.


#3 sunhao8459

sunhao8459

    Brand New Member

  • Members
  • 1 posts

Posted 06 December 2010 - 07:14 AM

Sorry, I don't know how to use it. the excle is wrong. Please make some picture to show.



#4

  • guestGuests
  • 0 posts

Posted 29 July 2011 - 06:58 AM

I suggest adding the as the last line of code in the pipe size macro. Otherwise one ends up with dozens of identical constaints

Application.Run "solver.xlam!solverreset"




Similar Topics