Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Problem with calling .dll from excel VBA


Hello!

Well, here is my problem:
I've written a simple code in VBA, in order to call a fortran .dll fro
excel!
Everything's fine with the call, but the problem arises when it read
the input.
And I'm getting more specific: the .dll has as input an .inp file whic
I've placed in the same directory as the excel file and the .dll, bu
Excel (which probably recognizes "My Documents" as its defaul
directory) opens My Documents to search for the .inp file, so the whol
process is completed only if the .inp is located in My Document
directory, otherwise, an error message (from visual fortran "end o
file during read" or something like that) emerges.

All I want is to be able to define where the .inp file is located
either hardcoded (by writing the whole path in the code), or explicitl
(by the user through an option), or even by being in the same director
with the excel file,... or whatever you could think of!
Any suggestions?
Please feel free to ask me whatever you think it could make my proble
more clear to you!

Thank you in advance for your time!

Athin

--
atellidouPosted from http://www.pcreview.co.uk/ newsgroup acces

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
Problem with calling addin macros in ExcelXP wojtek Excel Programming 2 November 9th 04 11:44 PM
Problem with calling Excel2000 addin in ExcelXP wojtek Excel Programming 0 November 8th 04 11:39 PM
Add-in function calling problem on start kumar_8675[_3_] Excel Programming 1 October 28th 04 04:16 PM
Calling Excel from C++ GL[_2_] Excel Programming 1 August 9th 04 09:15 PM
problem with selection when calling macro externally from VB6 [email protected] Excel Programming 1 November 4th 03 08:17 PM


All times are GMT +1. The time now is 12:03 AM.

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

About Us

"It's about Microsoft Excel"