×
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

Excel interface with MSDOS

Excel interface with MSDOS

Excel interface with MSDOS

(OP)
Hi,
I want to interface Excel with an MSDOS executable to export an input file, initiate the executable calculation, and import the results back to excel.

This was previously discussed in the attached thread.

Can anyone share a working macro or VB code?

Thanks

RE: Excel interface with MSDOS

' In Microsoft Windows:
' Specifying 1 as the second argument opens the application in
' normal size and gives it the focus.
Dim RetVal
RetVal = Shell("C:\WINDOWS\CALC.EXE", 1)    ' Run Calculator.

Do you have an allergy to the Help system?

Cheers

Greg Locock

SIG:Please see FAQ731-376: Eng-Tips.com Forum Policies for tips on how to make the best use of Eng-Tips.

RE: Excel interface with MSDOS

(OP)
No allergy to the help system, just a general lack of VB programming knowledge.  I do dislike re-inventing the wheel.

IRstuff has previously provided the VBA code, and I am capable of modifying it for a different executable.  

However, having the original excel file would make interpreting what is going on much easier.

Any chance IRstuff could supply the original files: Xl_acqwm2.xls, etc.?

RE: Excel interface with MSDOS

IR, your past comes back to haunt you again!  I always love referencing old, old designs, especially when new tools will still read the old formats.  

Z
 

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