Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Invoking a workbook from a Fortran Program!

Hello all!

A quick question.
I have a workbook (Vtec.xls) that has macro buttons and custom create
menus and stuff performing different tasks.
I would like to invoke/call 'vtec.xls' from a Fortran code.
Is there any way we could do this?
Any alternatives?

I would really appreciate any help in this matter.

Thanks a bunch.

regds,
Arun.

Vt Corp

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Invoking a workbook from a Fortran Program!

Hello,
for me (i m not specialist) it is possible to read in your sheet xl, but not
write...
I have a problem with Reflection to readin xl and this is the superbe
reponse from Bill Manville:

I don't know anything about Reflection, but I would try using
automation. Create a Reference from your Reflection's VBproject to
Microsoft Excel N Object Library.

Dim oXL As Excel.Application
Dim V
Dim I As Integer
Set oXL = New Excel.Application
oXL.Workbooks.Open "C:\Mybook.xls"
For I=1 To 50
V = oXL.Sheets("Sheet1").Cells(I, 1).Value
' do what you will with that value V in Reflection
Next
oXL.ActiveWorkbook.Close False
oXL.Quit
Set oXL = Nothing

If you can deal with the data being in an array you could replace the
For loop with
V = oXL.Sheets("Sheet1").Range("A1:A50").Value

Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup



"aiyer " a écrit dans le message de
...
Hello all!

A quick question.
I have a workbook (Vtec.xls) that has macro buttons and custom created
menus and stuff performing different tasks.
I would like to invoke/call 'vtec.xls' from a Fortran code.
Is there any way we could do this?
Any alternatives?

I would really appreciate any help in this matter.

Thanks a bunch.

regds,
Arun.

Vt Corp.


---
Message posted from http://www.ExcelForum.com/



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
Program shutsdown when I close workbook Bob Excel Discussion (Misc queries) 0 May 6th 08 03:14 PM
Why open more than one Excel program to see more than one workbook stevemalee[_2_] Excel Discussion (Misc queries) 3 June 11th 07 03:09 PM
is there a maximum size of parameter for a (Fortran)DLL call from VBA tilmP Excel Programming 0 April 26th 04 02:41 PM
Calling a Fortran dll from Excel Tom Kreutz Excel Programming 0 November 15th 03 06:56 PM
Link to fortran Claudia[_3_] Excel Programming 0 September 18th 03 08:58 AM


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