- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Hi
I'm new to both... Fortran and VB / VBA ... and I have a simple question... is it possible to call a Fortran DLL from VBA?
I try to get data out of Excel and do the calculation in Fortran... which sends the information back to VBA in order to save it in the Excel file...
Is what I try to do even possible? I read a lot about calling Fortran DLLs in VB Code... but never about calling it in VBA.
Thanks a lot for your help
Greetings
I'm new to both... Fortran and VB / VBA ... and I have a simple question... is it possible to call a Fortran DLL from VBA?
I try to get data out of Excel and do the calculation in Fortran... which sends the information back to VBA in order to save it in the Excel file...
Is what I try to do even possible? I read a lot about calling Fortran DLLs in VB Code... but never about calling it in VBA.
Thanks a lot for your help
Greetings
- Balises:
- Intel® Fortran Compiler
Lien copié
5 Réponses
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
This problem has arisen so often here thata simple search of the forum for 'EXCEL Fortran DLL' should throw up lots of helpful links for you.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
hehe okay... sorry about that :)
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
Quoting - Roman
hehe okay... sorry about that :)
I recommend that you get dependency walker (free from dependencywalker.com) to help sort out missing DLL's and errors that occur from time to time. Getting the argumnet types and calling conventions on both sides of the call is critical.
I have at least 3 apps running with multiple users all from Excel through VBA to Fortran DLL. If you want any assistance - search the forum and ask for help.
Regards,
David
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
..or you could try this recent thread...
http://software.intel.com/en-us/forums/showthread.php?t=70615
http://software.intel.com/en-us/forums/showthread.php?t=70615
I attach the zipped archive mentioned there, with two added screenshots showing the EXCEL worksheet plus VBA code.
- Marquer comme nouveau
- Marquer
- S'abonner
- Sourdine
- S'abonner au fil RSS
- Surligner
- Imprimer
- Signaler un contenu inapproprié
well thanks for the help @ all :) I will try it
greez
greez

Répondre
Options du sujet
- S'abonner au fil RSS
- Marquer le sujet comme nouveau
- Marquer le sujet comme lu
- Placer ce Sujet en tête de liste pour l'utilisateur actuel
- Marquer
- S'abonner
- Page imprimable