- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have some trouble in using an IMSL subroutine with excel VBA. I tried to create a VBA function which would call this IMSL subroutine. This function worked only one time in a open excel workbook. Whenever I used it at another place in the same excel workbook. Excel would fail and shut down itself automatically. If I write my own Fortran subroutine to replace this IMSL subroutine, everything works fine. But, I still prefer to use the IMSL subroutine if I can get it to work. Does anyone have any suggestions or comments?
Thanks very much.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The IMSL routines require being called with the "C" calling mechanism, but VBA wants to use STDCALL. I don't know if there's a way to tell VBA to use "C". I suggest writing a Fortran jacket routine for the call you want to make.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page