<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[Approximatrix Forums — Calling some vba]]></title>
		<link>https://forums.approximatrix.com/viewtopic.php?id=915</link>
		<atom:link href="https://forums.approximatrix.com/extern.php?action=feed&amp;tid=915&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Calling some vba.]]></description>
		<lastBuildDate>Tue, 03 Oct 2023 20:38:34 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4216#p4216</link>
			<description><![CDATA[<p>Peter,<br />You can try translating your VBA code into FreeBasic (<a href="https://github.com/PaulSquires/WinFBE/releases">https://github.com/PaulSquires/WinFBE/releases</a>). It shouldn&#039;t be so tedious because FBA is also a dialect of Basic. Then creating a DLL is easy (if I remember correctly).<br />Carlos</p>]]></description>
			<author><![CDATA[null@example.com (Carlos Herrera)]]></author>
			<pubDate>Tue, 03 Oct 2023 20:38:34 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4216#p4216</guid>
		</item>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4206#p4206</link>
			<description><![CDATA[<p>Thanks DrFrank and Jeff!<br />At the end of the day, I decided to do the code conversion from VBA to Fortran myself - I was too afraid of getting stuck way down in the weeds in building the DLL and testing it. Syntactically, it isn&#039;t difficult, just a tad tedious. Thank you both for your comments and ideas.<br />Regards,<br />Pete</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Sun, 24 Sep 2023 09:48:03 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4206#p4206</guid>
		</item>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4201#p4201</link>
			<description><![CDATA[<p>Calling VB from Fortran is certainly possible, but it won&#039;t be straightforward at all.&nbsp; First, unless you&#039;re planning to use Visual Basic 6, you need to build an &quot;unmanaged&quot; DLL, meaning it is not running within the .NET CLR.&nbsp; To the best of my knowledge, building a VB.NET DLL that is unmanaged is not possible.</p><p>So, you&#039;d have to create some sort of shim to forward native calls to a .NET DLL, which is going to be pretty painful.&nbsp; I don&#039;t really have a good example to start from since I&#039;ve never seen this request before.&nbsp; There are some pertinent questions on <a href="https://stackoverflow.com/questions/25024877/calling-a-visual-basic-function-from-c">StackOverflow</a> that start to explain how exceedingly complex this task is going to get.</p>]]></description>
			<author><![CDATA[null@example.com (jeff)]]></author>
			<pubDate>Fri, 22 Sep 2023 20:45:24 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4201#p4201</guid>
		</item>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4200#p4200</link>
			<description><![CDATA[<p>Peter,</p><p>I have no idea how to create an EXCEL DLL from VBA code. If your EXCEL VBA code is raw number crunching and doesn&#039;t include calls to EXCEL graphics and spreadsheet functions, I suggest converting it to FORTRAN code since you want to call it from FORTRAN anyway. Sorry I don&#039;t have a more direct solution to your problem.</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Fri, 22 Sep 2023 10:36:49 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4200#p4200</guid>
		</item>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4199#p4199</link>
			<description><![CDATA[<p>Hi DrFrank,<br />What I wanted to do was the opposite of the forum posts. They are all about VB calling a fortran DLL. I want to create a VB DLL and call it from fortran.</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Fri, 22 Sep 2023 01:17:06 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4199#p4199</guid>
		</item>
		<item>
			<title><![CDATA[Re: Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4197#p4197</link>
			<description><![CDATA[<p>Peter,<br />I suggest that you search the Approximatrix Forums using the key words: VBA DLL<br />There have been several discussion on this topic.</p>]]></description>
			<author><![CDATA[null@example.com (drfrank)]]></author>
			<pubDate>Thu, 21 Sep 2023 14:01:18 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4197#p4197</guid>
		</item>
		<item>
			<title><![CDATA[Calling some vba]]></title>
			<link>https://forums.approximatrix.com/viewtopic.php?pid=4196#p4196</link>
			<description><![CDATA[<p>Hi Steve,<br />This is a bit of a big ask, but if you can shed any light on it, it would be greatly appreciated. I have a pretty big piece of VBA code that I wrote in an excel sheet and I&#039;m looking for a way to call it from FORTRAN. If I knew how, (and it was easy) I&#039;d make a DLL and try and somehow call it from Fortran. Do you know of any way that can be done? My first attempt was to feed it into chat GPT which did a great job of translating the VB to Fortran inasmuch as it compiles without error. Sadly, the answers that I get are wildly incorrect and short of a marathon debugging session, I probably won&#039;t get it to work satisfactorily. Any help/discussion would be greatly appreciated.</p>]]></description>
			<author><![CDATA[null@example.com (peter.kelly)]]></author>
			<pubDate>Thu, 21 Sep 2023 09:26:19 +0000</pubDate>
			<guid>https://forums.approximatrix.com/viewtopic.php?pid=4196#p4196</guid>
		</item>
	</channel>
</rss>
