Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Controlling an application from excel vba

I have a old Fortran based application where I calculate thermodynamic
properties. It runs in a window, but is definitly not window complient (menu
driven, but has short cuts like Ctl + Ins to copy, Shft + Ins to paste)
The interface/output from this application are text files
The only ouput is a Txt file - 265 pages long
The input files are also Txt files, where I change parameters to vary what
will be calculated - after which I "run" the program and it generates the
text files


So I built a excel spreadsheet to pull the text files and convert them into
spreadsheets -where I can analyse the data
I also wrote macros to take data from my Excell files and rewrite the input
text files

I would like to go the next step, and get Excel to
Open this application
Open a specific file
Run the file
and close

Can anyone point in a direction to learn how to do this

Thanks
--
Mike Matheson
Canada
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 86
Default Controlling an application from excel vba

If you insert a hyperlink in a cell that points to your .exe or .com program
file, then a simple click will start the app running. If the data file used
by your application has a file association, then point the hyperlink to this
data file. For example setting a hyperlink to WORD will start WORD running.
Setting the hyperlink to a .doc file will both start WORD and load the .doc
file.

"Mykal" wrote:

I have a old Fortran based application where I calculate thermodynamic
properties. It runs in a window, but is definitly not window complient (menu
driven, but has short cuts like Ctl + Ins to copy, Shft + Ins to paste)
The interface/output from this application are text files
The only ouput is a Txt file - 265 pages long
The input files are also Txt files, where I change parameters to vary what
will be calculated - after which I "run" the program and it generates the
text files


So I built a excel spreadsheet to pull the text files and convert them into
spreadsheets -where I can analyse the data
I also wrote macros to take data from my Excell files and rewrite the input
text files

I would like to go the next step, and get Excel to
Open this application
Open a specific file
Run the file
and close

Can anyone point in a direction to learn how to do this

Thanks
--
Mike Matheson
Canada

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Controlling an application from excel vba

Thank you - the hyperlink opens the exe application
but unfortunately, even when I register the file with this application, the
application starts up without the file

BUt it is a start
Thanks again

"Gary's Student" wrote:

If you insert a hyperlink in a cell that points to your .exe or .com program
file, then a simple click will start the app running. If the data file used
by your application has a file association, then point the hyperlink to this
data file. For example setting a hyperlink to WORD will start WORD running.
Setting the hyperlink to a .doc file will both start WORD and load the .doc
file.

"Mykal" wrote:

I have a old Fortran based application where I calculate thermodynamic
properties. It runs in a window, but is definitly not window complient (menu
driven, but has short cuts like Ctl + Ins to copy, Shft + Ins to paste)
The interface/output from this application are text files
The only ouput is a Txt file - 265 pages long
The input files are also Txt files, where I change parameters to vary what
will be calculated - after which I "run" the program and it generates the
text files


So I built a excel spreadsheet to pull the text files and convert them into
spreadsheets -where I can analyse the data
I also wrote macros to take data from my Excell files and rewrite the input
text files

I would like to go the next step, and get Excel to
Open this application
Open a specific file
Run the file
and close

Can anyone point in a direction to learn how to do this

Thanks
--
Mike Matheson
Canada

Reply
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
macro to close excel application other than application.quit mary Excel Programming 1 September 14th 04 03:43 PM
controlling another application via VBA code in Excell & sending keystrokes & mouse clicks Zaidan Excel Programming 0 June 6th 04 09:06 PM
Controlling Outlook from Excel Using VBA Trevor Shuttleworth Excel Programming 1 September 9th 03 10:43 PM


All times are GMT +1. The time now is 02:05 AM.

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

About Us

"It's about Microsoft Excel"