<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>XLGL's Blog &#187; Menu command</title>
	<atom:link href="http://xlglblog.wordpress.com/tag/menu-command/feed/" rel="self" type="application/rss+xml" />
	<link>http://xlglblog.wordpress.com</link>
	<description>The Power of Excel, the Simplicity of Simply Accounting</description>
	<lastBuildDate>Thu, 09 Feb 2012 15:18:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='xlglblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://1.gravatar.com/blavatar/99a4f0500a7e63ab408b67375eb7f9f4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>XLGL's Blog &#187; Menu command</title>
		<link>http://xlglblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://xlglblog.wordpress.com/osd.xml" title="XLGL&#039;s Blog" />
	<atom:link rel='hub' href='http://xlglblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>XLGL and VBA</title>
		<link>http://xlglblog.wordpress.com/2009/08/13/xlgl-and-vba/</link>
		<comments>http://xlglblog.wordpress.com/2009/08/13/xlgl-and-vba/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 14:36:53 +0000</pubDate>
		<dc:creator>Pierre Alain Carrier</dc:creator>
				<category><![CDATA[VBA]]></category>
		<category><![CDATA[Excel]]></category>
		<category><![CDATA[Excel UDF]]></category>
		<category><![CDATA[Menu command]]></category>
		<category><![CDATA[Worksheet functions]]></category>
		<category><![CDATA[XLGL]]></category>

		<guid isPermaLink="false">http://xlglblog.wordpress.com/?p=56</guid>
		<description><![CDATA[Learn how to call XLGL functions from VBA(Visual Basic for Application)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xlglblog.wordpress.com&#038;blog=5721441&#038;post=56&#038;subd=xlglblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A question we are receiving more and more lately is: Can XLGL functions be called from VBA (Visual Basic for Application). The answer is Yes.</p>
<p>This is an advanced topic and, if you&#8217;re not familiar with VBA, you may be tempted to skip it. However, knowing a little VBA can save you tons of work on repetitive tasks. Starting with this post, we&#8217;ll talk more about XLGL and VBA, particularly the ability to create your own Worksheet Functions.</p>
<p>Although XLGL is not fully implement in VBA, it is still possible to call any functions by using Application.Run. For example:</p>
<pre>Amount = Application.Run("XGL", "1020")</pre>
<p>will return in variable Amount, the current balance of Account 1020.</p>
<p>The first parameter to Application.Run is always the function&#8217;s name followed by any function parameter you provide.</p>
<p>Menu command can be called in the same fashion. For example, to recalculate the workbook using XLGL Recalculate command:</p>
<pre>Application.Run <span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;"><span style="color:#000000;">"XLGL__Recalculate"</span></span></span></pre>
<p><span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;"><span style="color:#000000;">To Refresh:</span></span></span></p>
<pre>Application.Run <span style="font-size:x-small;color:#a31515;"><span style="font-size:x-small;color:#a31515;"><span style="color:#000000;">"XLGL__Refresh"</span></span></span></pre>
<p><span style="font-size:x-small;color:#a31515;"><span style="color:#000000;">This should give you a good head start on using XLGL with VBA. In further posts, we&#8217;ll look at custom worksheet function and answer any question we receive on the subject.</span></span></p>
<br />Posted in VBA Tagged: Excel, Excel UDF, Menu command, VBA, Worksheet functions, XLGL <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/xlglblog.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/xlglblog.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/xlglblog.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=xlglblog.wordpress.com&#038;blog=5721441&#038;post=56&#038;subd=xlglblog&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://xlglblog.wordpress.com/2009/08/13/xlgl-and-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/adfeaa33c0609ad700d2d1e9019ca825?s=96&#38;d=http%3A%2F%2F0.gravatar.com%2Favatar%2Fad516503a11cd5ca435acc9bb6523536%3Fs%3D96&#38;r=G" medium="image">
			<media:title type="html">xlgl</media:title>
		</media:content>
	</item>
	</channel>
</rss>
