Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

calling fortran dll from VBA excel function

Status
Not open for further replies.

EJD1

Technical User
Oct 6, 2003
1
US
I'm trying to create a function in Excel which will use a dll created in Fortran. The idea is that a name gets input in Excel and the dll returns an integer appropriate to the name. I set this name to ByVal and the integer to Byref in the VB and declare both with Attributes REFERENCE in the fortran. But it does not seem to pass the integer back to Excel.

Any help very much appreciated,

Ed
 
Fortan arguments are always by reference. Try passing the name as Byref.

CaKiwi

"I love mankind, it's people I can't stand" - Linus Van Pelt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top