×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

ITERATIONS in calling programs from EXCEL

ITERATIONS in calling programs from EXCEL

ITERATIONS in calling programs from EXCEL

(OP)
who knows how to use an excel macro to launch an analysis program?

i have to perform a parametric structural analysis, and i intend to create an excel sheet whith all the parameters data, with a macro that activates the structural program at each iteration and also copies the output at each step


thanks



 

RE: ITERATIONS in calling programs from EXCEL

It should not be a problem. We would just need some more information on how the analysis program is run. Is it a standalone program that accepts parameters or is it incorporated in your workbook. Needless to say, you'll have to give more detail before we can start working on a solution.

DimensionalSolutions@Core.com
While I welcome e-mail messages, please post all thread activity in these forums for the benefit of all members.

RE: ITERATIONS in calling programs from EXCEL

Use function Shell("C:\programfiles\myapplication.exe") to run external program within Excel. If your program creates text output file you will have to read it line by line like:
Dim TextLine
Open "TESTFILE" For Input As #1    ' Open file.
Do While Not EOF(1)    ' Loop until end of file.
    Line Input #1, TextLine    ' Read line into variable.
'analyze Textline using string functions to find the data you need
    Loop
Close #1    ' Close file.

yakov

RE: ITERATIONS in calling programs from EXCEL

(OP)
the program i use is SAP2000


RE: ITERATIONS in calling programs from EXCEL

I don't now much how SAP2000 works. In GTSTRUDL there's a way to run program in a batch mode since it's text input file driven program. The command looks like:
Shell("C:\program files\gtstrudl\gtstrudl.exe inputfile.dat -l outputfile.out")

You need to contact SAP2000 support for syntax and for the key to access the database. Good luck!

RE: ITERATIONS in calling programs from EXCEL

Hi, anyone knows how to open a zip file(a.xls) from excel macro? Please advice. Thank you.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources