<?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>VBA Tips &#38; Tricks</title>
	<atom:link href="http://vbadud.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://vbadud.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Sun, 27 Apr 2008 15:58:39 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='vbadud.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>VBA Tips &#38; Tricks</title>
		<link>http://vbadud.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vbadud.wordpress.com/osd.xml" title="VBA Tips &#38; Tricks" />
	<atom:link rel='hub' href='http://vbadud.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Creating Digital Signature for VBA Project (Outlook VBA / Excel VBA/ Word VBA)</title>
		<link>http://vbadud.wordpress.com/2008/04/27/creating-digital-signature-for-vba-project-outlook-vba-excel-vba-word-vba/</link>
		<comments>http://vbadud.wordpress.com/2008/04/27/creating-digital-signature-for-vba-project-outlook-vba-excel-vba-word-vba/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 15:58:39 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[Outlook VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Word VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/?p=51</guid>
		<description><![CDATA[Creating Digital Signature for VBA Project (Outlook VBA / Excel VBA/ Word VBA) How to digitally sign a VBA Project To create a code-signing certificate, follow these steps: From Programs menu, choose Microsoft Office -&#62; Microsoft Office Tools -&#62; Digital Certificate for VBA Projects (or) Navigate to the folder where your Office applications are installed, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=51&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2008/04/creating-digital-signature-for-vba.html">Creating Digital Signature for VBA Project (Outlook VBA / Excel VBA/ Word VBA)</a></h3>
<div class="post-body entry-content">
<p><a href="http://bp2.blogger.com/_s2jU7girbyM/SAdMVHxlHMI/AAAAAAAAAYk/dKjJnE3D5_4/s1600-h/VBAdud_Digital_Certificate_Creation.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp2.blogger.com/_s2jU7girbyM/SAdMVHxlHMI/AAAAAAAAAYk/dKjJnE3D5_4/s400/VBAdud_Digital_Certificate_Creation.JPG" border="0" alt="" /></a><a href="http://bp1.blogger.com/_s2jU7girbyM/SAdMU3xlHLI/AAAAAAAAAYc/Nb0y2uXFXzg/s1600-h/Certifcate_Becomes_Available_To_All.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp1.blogger.com/_s2jU7girbyM/SAdMU3xlHLI/AAAAAAAAAYc/Nb0y2uXFXzg/s400/Certifcate_Becomes_Available_To_All.JPG" border="0" alt="" /></a><br />
<span style="font-weight:bold;color:#ff6600;">How to digitally sign a VBA Project</span><a href="http://bp2.blogger.com/_s2jU7girbyM/SAdM2HxlHOI/AAAAAAAAAY0/R4wDK-3uMu4/s1600-h/VBADUD_Tools_DigitalSignature.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp2.blogger.com/_s2jU7girbyM/SAdM2HxlHOI/AAAAAAAAAY0/R4wDK-3uMu4/s400/VBADUD_Tools_DigitalSignature.JPG" border="0" alt="" /></a><br />
<a href="http://bp3.blogger.com/_s2jU7girbyM/SAdMUXxlHKI/AAAAAAAAAYU/V3S5qzEztZI/s1600-h/Save_Project.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp3.blogger.com/_s2jU7girbyM/SAdMUXxlHKI/AAAAAAAAAYU/V3S5qzEztZI/s400/Save_Project.JPG" border="0" alt="" /></a></p>
<p>To create a code-signing certificate, follow these steps:</p>
<p>From Programs menu, choose <a id="KonaLink2" class="kLink" href="http://vbadud.blogspot.com/#" target="_top"><span style="color:blue !important;font-weight:400;font-size:12.6px;position:static;"><span class="kLink" style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;">Microsoft </span><span class="kLink" style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;">Office</span></span></a> -&gt; Microsoft Office Tools -&gt; Digital Certificate for VBA Projects</p>
<p>(or)</p>
<p>Navigate to the folder where your<a href="http://bp1.blogger.com/_s2jU7girbyM/SAdMT3xlHII/AAAAAAAAAYE/d4t-yOcsniU/s1600-h/Vbadud_ViewCertificate.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp1.blogger.com/_s2jU7girbyM/SAdMT3xlHII/AAAAAAAAAYE/d4t-yOcsniU/s400/Vbadud_ViewCertificate.JPG" border="0" alt="" /></a> Office applications are installed, usually C:\Program<br />
Files\Microsoft Office\Office12 for Office 2007 and run the Selfcert.exe program.</p>
<p>&lt;&gt;</p>
<p>SelfCert.exe is provided with Office 2000 and later. If it is not installed on your system, run Office Setup and install Office Tools  <a id="KonaLink3" class="kLink" href="http://vbadud.blogspot.com/#" target="_top"><span style="color:blue !important;font-weight:400;font-size:12.6px;position:static;"><span class="kLink" style="border-bottom:1px solid blue;color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;padding-bottom:1px;background-color:transparent;">Digital </span><span class="kLink" style="border-bottom:1px solid blue;color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;padding-bottom:1px;background-color:transparent;">Signature</span></span></a> for VBA Projects.</p>
<p>Type a name for your certificate &#8211; just use your own name or product name and click OK to create your personal code-signing certificate.</p>
<p>&lt;&gt;</p>
<p>Now open the VBA project using Alt+F11 and select Tools ➪ Digital Signature<br />
to open the dialog shown below. In this dialog, click the Choose button and select the<br />
certificate and click OK twice to choose your certificate and<br />
sign your code project with that certificate.</p>
<p>Save your VBA project; then exit and restart Application (Excel / Word / Outlook).<br />
When you open your VBA project next time, you will be prompted to enable your macros in<br />
the dialog shown below</p>
<p>You can use this dialog to trust your certificate by selecting the option to &#8220;Always trust macros from this publisher&#8221;, which prevents this dialog from appearing again, or you can just enable the macros for that session.</p>
<p>Click the Trust All Documents from This Publisher button to trust your code-signing certificate<br />
and add it to the trusted publishers list. If you open the Trust Center dialog shown<br />
again and click the Trusted Publishers area, you will now see your code-signing certificate listed<br />
as a trusted publisher.</p>
<p>The same certificate can be used for multiple projects.</p>
</div>
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"> Posted by <span class="fn">Shasur</span> </span> <span class="post-timestamp"> at <a class="timestamp-link" title="permanent link" rel="bookmark" href="http://vbadud.blogspot.com/2008/04/creating-digital-signature-for-vba.html"><abbr class="published" title="00">6:08 AM</abbr></a> </span> <span class="post-comment-link"> </span> <span class="post-backlinks post-comment-link"> </span> <span class="post-icons"> <span class="item-control blog-admin pid-58049851"> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=1090777424281092833"> <img class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" alt="" /> </a> </span> </span></div>
<div class="post-footer-line post-footer-line-2"><span class="post-labels"> Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Creating%20Digital%20Signature%20for%20VBA%20Project">Creating Digital Signature for VBA Project</a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/How%20to%20digitally%20sign%20a%20VBA%20Project">How to digitally sign a VBA Project</a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/SelfCert.EXe">SelfCert.EXe</a> </span></div>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/51/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/51/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/51/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/51/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/51/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=51&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2008/04/27/creating-digital-signature-for-vba-project-outlook-vba-excel-vba-word-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/SAdMVHxlHMI/AAAAAAAAAYk/dKjJnE3D5_4/s400/VBAdud_Digital_Certificate_Creation.JPG" medium="image" />

		<media:content url="http://bp1.blogger.com/_s2jU7girbyM/SAdMU3xlHLI/AAAAAAAAAYc/Nb0y2uXFXzg/s400/Certifcate_Becomes_Available_To_All.JPG" medium="image" />

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/SAdM2HxlHOI/AAAAAAAAAY0/R4wDK-3uMu4/s400/VBADUD_Tools_DigitalSignature.JPG" medium="image" />

		<media:content url="http://bp3.blogger.com/_s2jU7girbyM/SAdMUXxlHKI/AAAAAAAAAYU/V3S5qzEztZI/s400/Save_Project.JPG" medium="image" />

		<media:content url="http://bp1.blogger.com/_s2jU7girbyM/SAdMT3xlHII/AAAAAAAAAYE/d4t-yOcsniU/s400/Vbadud_ViewCertificate.JPG" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>How to use .Net Array.Sort Function in VBA</title>
		<link>http://vbadud.wordpress.com/2008/04/27/how-to-use-net-arraysort-function-in-vba/</link>
		<comments>http://vbadud.wordpress.com/2008/04/27/how-to-use-net-arraysort-function-in-vba/#comments</comments>
		<pubDate>Sun, 27 Apr 2008 15:57:28 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VB.NET]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[.NET]]></category>
		<category><![CDATA[Visual Basic.NEt]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/?p=50</guid>
		<description><![CDATA[How to use .Net Array.Sort Function in VBA Using Vb.Net Function in VBA How to use a VB.Net DLL/TLB in Excel VBA Here is an example for using the customized .NET Function in Excel VBA. Unfortunately EXcel VBA doesn&#8217;t have a Array.Sort function. To overcome the shortcomings, we create our own function here in .Net [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=50&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2008/04/how-to-use-net-arraysort-function-in.html">How to use .Net Array.Sort Function in VBA</a></h3>
<div class="post-body entry-content">
<h3 class="post-title entry-title"><a href="http://dotnetdud.blogspot.com/2008/04/using-vbnet-function-in-vba.html">Using Vb.Net Function in VBA</a></h3>
<div class="post-body entry-content">
<p><a href="http://bp3.blogger.com/_s2jU7girbyM/SBR_qqef-SI/AAAAAAAAAZM/vmh8cfVy9s4/s1600-h/DND_SortArray1.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp3.blogger.com/_s2jU7girbyM/SBR_qqef-SI/AAAAAAAAAZM/vmh8cfVy9s4/s400/DND_SortArray1.JPG" border="0" alt="" /></a><br />
<a href="http://bp0.blogger.com/_s2jU7girbyM/SBR_q6ef-TI/AAAAAAAAAZU/IqfPVCjKUro/s1600-h/DND_SortArray2.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp0.blogger.com/_s2jU7girbyM/SBR_q6ef-TI/AAAAAAAAAZU/IqfPVCjKUro/s400/DND_SortArray2.JPG" border="0" alt="" /></a><br />
<a href="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-UI/AAAAAAAAAZc/p7ni_4ZLGIg/s1600-h/DND_SortArray3.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-UI/AAAAAAAAAZc/p7ni_4ZLGIg/s400/DND_SortArray3.JPG" border="0" alt="" /></a><br />
<a href="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-VI/AAAAAAAAAZk/5JLTVbHcp_Y/s1600-h/DND_SortArray4.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-VI/AAAAAAAAAZk/5JLTVbHcp_Y/s400/DND_SortArray4.JPG" border="0" alt="" /></a><br />
<a href="http://bp0.blogger.com/_s2jU7girbyM/SBR_r6ef-WI/AAAAAAAAAZs/WBhrPiERa9A/s1600-h/DND_SortArray5.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp0.blogger.com/_s2jU7girbyM/SBR_r6ef-WI/AAAAAAAAAZs/WBhrPiERa9A/s400/DND_SortArray5.JPG" border="0" alt="" /></a></p>
<p><span style="font-weight:bold;color:#ff6600;">How to use a VB.Net </span><span style="font-weight:bold;color:#ff6600;">DLL/T</span><span style="color:#ff6600;font-weight:bold;">LB in Excel VBA</p>
<p><span style="color:#993300;">Here is an example for using the customized .NET Function in Excel VBA. Unfortunately EXcel VBA doesn&#8217;t have a Array.Sort function. To overcome the shortcomings, we create our own function here in .Net and use the same in Excel VBA</span></p>
<p>Here are the steps:</p>
<p></span></p>
<ol>
<li><span style="color:#ff6600;font-weight:bold;">Create a class library project in  Visual Studio</span></li>
<li>Add a COM Class item (DND_SortArray in this example)</li>
<li>In the assembly information edit the title, company and provide a meaningful description. This would be seen in the References dialog in Excel</li>
<li>Add the code shown below:</li>
</ol>
<p><span style="font-size:10pt;font-family:&quot;"> _</span></p>
<ol>
<li>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;">Public</span><span style="font-size:10pt;font-family:&quot;"> <span style="color:blue;">Class</span> DotNetDud_SortArray</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;">#Region</span><span style="font-size:10pt;font-family:&quot;"> <span style="color:#a31515;">&#8220;COM GUIDs&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; These<span> </span>GUIDs provide the COM identity for this class </span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; and its COM interfaces. If you change them, existing </span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; clients will no longer be able to access the class.</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Public</span> <span style="color:blue;">Const</span> ClassId <span style="color:blue;">As</span> <span style="color:blue;">String</span> = <span style="color:#a31515;">&#8220;93534c94-9fc1-4a54-b022-338fa7d454c1&#8243;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Public</span> <span style="color:blue;">Const</span> InterfaceId <span style="color:blue;">As</span> <span style="color:blue;">String</span> = <span style="color:#a31515;">&#8220;03787ed3-bc65-41a1-9053-d37f390ff94b&#8221;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Public</span> <span style="color:blue;">Const</span> EventsId <span style="color:blue;">As</span> <span style="color:blue;">String</span> = <span style="color:#a31515;">&#8220;34d12c14-8afd-44b7-a987-fc2f909724b6&#8243;</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;">#End</span><span style="font-size:10pt;font-family:&quot;"> <span style="color:blue;">Region</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; A creatable COM class must have a Public Sub New() </span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; with no parameters, otherwise, the class will not be </span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; registered in the COM registry and cannot be created </span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:green;">&#8216; via CreateObject.</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Public</span> <span style="color:blue;">Sub</span> <span style="color:blue;">New</span>()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">MyBase</span>.New()</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">Public</span> <span style="color:blue;">Sub</span> SortArray(<span style="color:blue;">ByRef</span> arTemp() <span style="color:blue;">As</span> <span style="color:blue;">String</span>)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span>Array.Sort(arTemp)</span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"> </span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;"><span> </span><span style="color:blue;">End</span> <span style="color:blue;">Sub</span></span></p>
<p class="MsoNormal" style="margin-bottom:0.0001pt;line-height:normal;"><span style="font-size:10pt;font-family:&quot;color:blue;">End</span><span style="font-size:10pt;font-family:&quot;"> <span style="color:blue;">Class</span></span></p>
</li>
</ol>
<p>Compile the Project. You will get a DLL and a TLB.</p>
<p>Now open the <a id="KonaLink0" class="kLink" href="http://dotnetdud.blogspot.com/#" target="_top"><span style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;"><span class="kLink" style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;">Excel </span><span class="kLink" style="color:blue !important;font-family:&quot;font-weight:400;font-size:12.6px;position:static;">VBA</span></span></a> Editor and add the TLB file to References.</p>
<p>The following code will now use the SortArray .NET Function created</p>
<p class="MsoNormal"><span>Sub Use_DotNet_Sort()</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>Dim Cls1 As DotNetDud_SortArray.DotNetDud_SortArray</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>Set Cls1 = New DotNetDud_SortArray.DotNetDud_SortArray</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>Dim arTemp(0 To 2) As String</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>arTemp(0) = &#8220;Bottle&#8221;</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>arTemp(1) = &#8220;Apple&#8221;</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>arTemp(2) = &#8220;Aaron&#8221;</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>Cls1.SortArray arTemp</span></p>
<p class="MsoNormal" style="margin-left:0.5in;line-height:normal;"><span>Set Cls1 = Nothing</span></p>
<p class="MsoNormal"><span>End Sub</span></p>
<ol>
<li> <a href="http://bp3.blogger.com/_s2jU7girbyM/SBR_Uqef-RI/AAAAAAAAAZE/Idv5vgRwXYw/s1600-h/DND_SortArray6.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp3.blogger.com/_s2jU7girbyM/SBR_Uqef-RI/AAAAAAAAAZE/Idv5vgRwXYw/s400/DND_SortArray6.JPG" border="0" alt="" /></a><a href="http://bp1.blogger.com/_s2jU7girbyM/SBR_UKef-QI/AAAAAAAAAY8/fp49caZwU7Q/s1600-h/DND_SortArray7.JPG"><img style="float:right;cursor:pointer;margin:0 0 10px 10px;" src="http://bp1.blogger.com/_s2jU7girbyM/SBR_UKef-QI/AAAAAAAAAY8/fp49caZwU7Q/s400/DND_SortArray7.JPG" border="0" alt="" /></a></li>
</ol>
</div>
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"> Posted by <span class="fn">Shasur</span> </span> <span class="post-timestamp"> at <a class="timestamp-link" title="permanent link" rel="bookmark" href="http://dotnetdud.blogspot.com/2008/04/using-vbnet-function-in-vba.html"><abbr class="published" title="00">6:26 AM</abbr></a> </span> <span class="post-comment-link"> <a class="comment-link" href="http://vbadud.blogspot.com/comment.g?blogID=6497434045878013201&amp;postID=4683028290389008867">0 comments</a> </span> <span class="post-backlinks post-comment-link"> </span> <span class="post-icons"> <span class="item-control blog-admin pid-24239361"> <a title="Edit Post" href="http://vbadud.blogspot.com/post-edit.g?blogID=6497434045878013201&amp;postID=4683028290389008867"> <img class="icon-action" src="http://vbadud.blogspot.com/img/icon18_edit_allbkg.gif" alt="" /> </a> </span> </span></div>
<div class="post-footer-line post-footer-line-2"><span class="post-labels"> Label<span style="font-weight:bold;color:#ff0000;">s: </span><a rel="tag" href="http://dotnetdud.blogspot.com/search/label/Array.Sort%20function%20in%20Excel%20VBA.%20Using%20.Net%20DLLs%20in%20Excel%20VBA">Array.Sort function in Excel VBA. Using .Net DLLs in Excel VBA</a><span style="font-weight:bold;color:#ff0000;">, </span><a rel="tag" href="http://dotnetdud.blogspot.com/search/label/How%20to%20call%20a%20.NET%20DLL%20from%20VBA.%20How%20to%20call%20a%20VB.Net%20Function%20from%20Excel%20VBA%2FWord%20VBA">How to call a .NET DLL from VBA. How to call a VB.Net Function from Excel VBA/Word VBA</a> </span></div>
</div>
<div class="post-footer">
<div class="post-footer-line post-footer-line-1"><span class="post-author vcard"> Posted by <span class="fn">Shasur</span> </span> <span class="post-timestamp"> at <a class="timestamp-link" title="permanent link" rel="bookmark" href="http://vbadud.blogspot.com/2008/04/how-to-use-net-arraysort-function-in.html"><abbr class="published" title="00">6:43 AM</abbr></a> </span> <span class="post-comment-link"> </span> <span class="post-backlinks post-comment-link"> </span> <span class="post-icons"> <span class="item-control blog-admin pid-58049851"> <a title="Edit Post" href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=8723424639023317768"> <img class="icon-action" src="http://www.blogger.com/img/icon18_edit_allbkg.gif" alt="" /> </a> </span> </span></div>
<div class="post-footer-line post-footer-line-2"><span class="post-labels"> Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Array.Sort%20function%20in%20Excel%20VBA.%20How%20to%20sort%20an%20Array%20in%20VBA.%20VBA%20Array%20Sort%20Function">Array.Sort function in Excel VBA. How to sort an Array in VBA. VBA Array Sort Function</a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Use%20Visual%20Basic%20.NET%20or%20C%23%20Functions%20in%20VBA">Use Visual Basic .NET or C# Functions in VBA</a> </span></div>
</div>
<h2 class="date-header">Thursday, April 17, 2008</h2>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/50/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/50/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/50/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/50/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/50/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=50&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2008/04/27/how-to-use-net-arraysort-function-in-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://bp3.blogger.com/_s2jU7girbyM/SBR_qqef-SI/AAAAAAAAAZM/vmh8cfVy9s4/s400/DND_SortArray1.JPG" medium="image" />

		<media:content url="http://bp0.blogger.com/_s2jU7girbyM/SBR_q6ef-TI/AAAAAAAAAZU/IqfPVCjKUro/s400/DND_SortArray2.JPG" medium="image" />

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-UI/AAAAAAAAAZc/p7ni_4ZLGIg/s400/DND_SortArray3.JPG" medium="image" />

		<media:content url="http://bp2.blogger.com/_s2jU7girbyM/SBR_raef-VI/AAAAAAAAAZk/5JLTVbHcp_Y/s400/DND_SortArray4.JPG" medium="image" />

		<media:content url="http://bp0.blogger.com/_s2jU7girbyM/SBR_r6ef-WI/AAAAAAAAAZs/WBhrPiERa9A/s400/DND_SortArray5.JPG" medium="image" />

		<media:content url="http://bp3.blogger.com/_s2jU7girbyM/SBR_Uqef-RI/AAAAAAAAAZE/Idv5vgRwXYw/s400/DND_SortArray6.JPG" medium="image" />

		<media:content url="http://bp1.blogger.com/_s2jU7girbyM/SBR_UKef-QI/AAAAAAAAAY8/fp49caZwU7Q/s400/DND_SortArray7.JPG" medium="image" />

		<media:content url="http://vbadud.blogspot.com/img/icon18_edit_allbkg.gif" medium="image" />

		<media:content url="http://www.blogger.com/img/icon18_edit_allbkg.gif" medium="image" />
	</item>
		<item>
		<title>Validate Date between Ranges using VBA</title>
		<link>http://vbadud.wordpress.com/2007/12/04/validate-date-between-ranges-using-vba/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/validate-date-between-ranges-using-vba/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:27:55 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Word VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/validate-date-between-ranges-using-vba/</guid>
		<description><![CDATA[Validate Dates Validate Date between Ranges Sub Feed_Check_Date_Function() &#8216; Date is within the Valid Range Check_Date &#8220;2007-05-01&#8243;, &#8220;2007-05-10&#8243;, &#8220;2007-05-01&#8243; &#8216; Date is NOT within the Valid Range Check_Date &#8220;2007-05-01&#8243;, &#8220;2007-05-10&#8243;, &#8220;2007-05-21&#8243; End Sub Function Check_Date(ByVal StartDate As Date, ByVal EndDate As Date, ByVal DateTobeChecked As Date) If DateDiff(&#8220;d&#8221;, StartDate, DateTobeChecked) &#60;&#62; 0 Then MsgBox &#8220;Enter [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=49&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/validate-dates.html">Validate Dates</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Validate Date between Ranges</span></p>
<p><span style="color:#3333ff;">Sub Feed_Check_Date_Function()</span><br />
<span style="color:#3333ff;"></span><br />
<span style="color:#3333ff;">&#8216;<span style="color:#009900;"> Date is within the Valid Range</span></span><br />
<span style="color:#3333ff;">Check_Date &#8220;2007-05-01&#8243;, &#8220;2007-05-10&#8243;, &#8220;2007-05-01&#8243;</span></p>
<p><span style="color:#3333ff;"><span style="color:#009900;">&#8216; Date is NOT within the Valid Range</span></span><br />
<span style="color:#3333ff;">Check_Date &#8220;2007-05-01&#8243;, &#8220;2007-05-10&#8243;, &#8220;2007-05-21&#8243;</span></p>
<p><span style="color:#3333ff;">End Sub</span></p>
<p><span style="color:#3333ff;">Function Check_Date(ByVal StartDate As Date, ByVal EndDate As Date, ByVal DateTobeChecked As Date)</span></p>
<p><span style="color:#3333ff;">If DateDiff(&#8220;d&#8221;, StartDate, DateTobeChecked) &lt;&gt; 0 Then</span><br />
<span style="color:#3333ff;">MsgBox &#8220;Enter a correct date!!!&#8221;</span><br />
<span style="color:#3333ff;">End If</span><br />
<a href="http://www.blogdigger.com/"><img border="0" src="http://www.blogdigger.com/images/blogdigger2.gif" /></a><br />
<span style="color:#3333ff;">End Function</span></p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/validate-dates.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-04T19:24:00-07:00"><font color="#225588">7:24 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=7355735416245129958" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Check%20Date%20Range"><font color="#225588">Check Date Range</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Check%20if%20Date%20within%20Range"><font color="#225588">Check if Date within Range</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Code%20Validate%20Date"><font color="#225588">Code Validate Date</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/DateDiff%20Function%20Example"><font color="#225588">DateDiff Function Example</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Validate%20Date"><font color="#225588">Validate Date</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Validate%20Date%20between%20Ranges"><font color="#225588">Validate Date between Ranges</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20DateDiff"><font color="#225588">VBA DateDiff</font></a> </span></p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/49/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/49/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=49&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/validate-date-between-ranges-using-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>

		<media:content url="http://www.blogdigger.com/images/blogdigger2.gif" medium="image" />
	</item>
		<item>
		<title>Check Workbook Attributes</title>
		<link>http://vbadud.wordpress.com/2007/12/04/check-workbook-attributes/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/check-workbook-attributes/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:27:07 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/check-workbook-attributes/</guid>
		<description><![CDATA[Check Workbook Attributes Get File Attributes &#8211; GetAttr Sub Check_Workbook_Attributes() Dim oXL As Excel.Application Dim oWB As Workbook Set oXL = Excel.Application oXL.DisplayAlerts = False &#8216; Check if the Workbook is Read-Only. If it is then close the workbbok Set oWB = oXL.Workbooks.Open(Filename:=&#8221;c:\MyBook.xls&#8221;, ReadOnly:=False) If oWB.ReadOnly = True Then MsgBox &#8220;The Workbook is Read-Only!!&#8221;, vbInformation [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=48&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="5558594114748030868"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/check-workbook-attributes.html">Check Workbook Attributes</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Get File Attributes &#8211; GetAttr</span></p>
<p><span style="font-weight:bold;color:#3333ff;">Sub Check_Workbook_Attributes()</span></p>
<p><span style="font-weight:bold;color:#3333ff;">Dim oXL As Excel.Application</span><br />
<span style="font-weight:bold;color:#3333ff;">Dim oWB As Workbook</span></p>
<p><span style="font-weight:bold;color:#3333ff;">Set oXL = Excel.Application</span></p>
<p><span style="font-weight:bold;color:#3333ff;">oXL.DisplayAlerts = False</span></p>
<p><span style="font-weight:bold;color:#009900;">&#8216; Check if the Workbook is Read-Only. If it is then close the workbbok</span></p>
<p><span style="font-weight:bold;color:#3333ff;">Set oWB = oXL.Workbooks.Open(Filename:=&#8221;c:\MyBook.xls&#8221;, ReadOnly:=False)</span></p>
<p><span style="font-weight:bold;color:#3333ff;">If oWB.ReadOnly = True Then</span><br />
<span style="font-weight:bold;color:#3333ff;">MsgBox &#8220;The Workbook is Read-Only!!&#8221;, vbInformation</span><br />
<span style="font-weight:bold;color:#3333ff;">oWB.Close False</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span></p>
<p><span style="font-weight:bold;color:#3333ff;">oXL.DisplayAlerts = True</span></p>
<p><span style="font-weight:bold;color:#009900;">&#8216; Using the GetAttr Function, WE can check if the file is read-only</span><br />
<span style="font-weight:bold;color:#3333ff;">If (GetAttr(&#8220;c:\MyBook.xls&#8221;) And vbReadOnly) Then</span><br />
<span style="font-weight:bold;color:#3333ff;">MsgBox &#8220;The Workbook is Read-Only!!&#8221;, vbInformation</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span></p>
<p><span style="font-weight:bold;color:#3333ff;"></span><span style="font-weight:bold;color:#3333ff;">End Sub</span></p>
<p><span style="font-weight:bold;color:#ff0000;">The GetAttr function will work if the file has read-only attributes. If the file is locked and hence it is available as read only this will not be useful</span></p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/check-workbook-attributes.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-04T19:26:00-07:00"><font color="#225588">7:26 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=5558594114748030868" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Check%20if%20the%20Workbook%20is%20Read-Only"><font color="#225588">Check if the Workbook is Read-Only</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Get%20File%20Attributes%20-%20GetAttr"><font color="#225588">Get File Attributes &#8211; GetAttr</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/GetAttr%20Function"><font color="#225588">GetAttr Function</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/read-only%20attributes"><font color="#225588">read-only attributes</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VB%20GetAttr%20Function"><font color="#225588">VB GetAttr Function</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/48/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/48/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=48&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/check-workbook-attributes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Resizing Text Boxes Automatically</title>
		<link>http://vbadud.wordpress.com/2007/12/04/resizing-text-boxes-automatically/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/resizing-text-boxes-automatically/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:26:24 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/resizing-text-boxes-automatically/</guid>
		<description><![CDATA[Automaticaly Resize Text Boxes Resizing Text Boxes Sub Initialize_TextBox() &#8216; To automatically resize the text box set the AutoSize to True. This will resize the text box as the user types text TextBox1.AutoSize = True &#8216; The sizing can be limited by providing the maximum length using MaxLength property TextBox1.MaxLength = 20 &#8216; You can [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=47&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="6487833734582588188"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/automaticaly-resize-text-boxes.html">Automaticaly Resize Text Boxes</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Resizing Text Boxes</span></p>
<p><span style="color:#3333ff;">Sub Initialize_TextBox()</span><br />
<span style="color:#3333ff;"></span><br />
<span style="font-weight:bold;color:#009900;">&#8216; To automatically resize the text box set the AutoSize to True. This will resize the text box as the user types text</span><br />
<span style="color:#3333ff;"></span><br />
<span style="color:#3333ff;">TextBox1.AutoSize = True</span></p>
<p><span style="font-weight:bold;color:#009900;">&#8216; The sizing can be limited by providing the maximum length using MaxLength property</span></p>
<p><span style="color:#3333ff;">TextBox1.MaxLength = 20</span><br />
<span style="color:#3333ff;"></span><br />
<span style="font-weight:bold;color:#009900;">&#8216; You can inform the user of resing with the Tooltip.</span></p>
<p><span style="color:#3333ff;">TextBox1.ControlTipText = &#8220;Maximum Length is 20&#8243;</span><br />
<span style="color:#3333ff;"></span><br />
<span style="color:#3333ff;"></span><span style="color:#3333ff;">End Sub</span></p>
<p><span style="color:#ff0000;">ControlTipText is the VBA variant for Visual Basic ToolTipText</span></p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/automaticaly-resize-text-boxes.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-04T19:33:00-07:00"><font color="#225588">7:33 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=6487833734582588188" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/AutoSize"><font color="#225588">AutoSize</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Limit%20Text%20Box%20Length"><font color="#225588">Limit Text Box Length</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/MaxLength%20%20Property"><font color="#225588">MaxLength Property</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Resizing%20Text%20Boxes"><font color="#225588">Resizing Text Boxes</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Setting%20Tool%20tip%20through%20Code"><font color="#225588">Setting Tool tip through Code</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Update%20Tool%20Tip%20Text%20in%20Run%20time"><font color="#225588">Update Tool Tip Text in Run time</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Tool%20Tip%20Text"><font color="#225588">VBA Tool Tip Text</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Visual%20Basic%20ToolTipText"><font color="#225588">Visual Basic ToolTipText</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/47/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/47/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=47&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/resizing-text-boxes-automatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Drag &amp; DRop Files to Text Box</title>
		<link>http://vbadud.wordpress.com/2007/12/04/drag-drop-files-to-text-box/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/drag-drop-files-to-text-box/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:25:55 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Word VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/drag-drop-files-to-text-box/</guid>
		<description><![CDATA[Drag &#38; DRop Files to Text Box Show File Name in Text Box using Drag &#38; Drop Private Sub TextBox1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single) Dim i1 As Integer &#8216;* Files Counter On Error GoTo Err_Trap If Data.GetFormat(vbCFFiles) = True Then i1 = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=46&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="3613080884876530796"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/drag-drop-files-to-text-box.html">Drag &amp; DRop Files to Text Box</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Show File Name in Text Box using Drag &amp; Drop</span></p>
<p><span style="font-weight:bold;color:#3333ff;">Private Sub TextBox1_OLEDragDrop(Data As DataObject, Effect As Long, Button As Integer, Shift As Integer, X As Single, Y As Single)</span><br />
<span style="font-weight:bold;color:#3333ff;">Dim i1 As Integer &#8216;* Files Counter</span></p>
<p><span style="font-weight:bold;color:#3333ff;">On Error GoTo Err_Trap</span></p>
<p><span style="font-weight:bold;color:#3333ff;">If Data.GetFormat(vbCFFiles) = True Then</span><br />
<span style="font-weight:bold;color:#3333ff;">i1 = Data.Files.Count</span><br />
<span style="font-weight:bold;color:#3333ff;">If i1 = 1 Then</span><br />
<span style="font-weight:bold;color:#3333ff;">If InStr(1, LCase$(Data.Files(i1)), &#8220;.xls&#8221;) Then</span><br />
<span style="font-weight:bold;color:#3333ff;">txtExcel.Text = Data.Files(i1)</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span></p>
<p><span style="font-weight:bold;color:#3333ff;">&#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><br />
<span style="font-weight:bold;color:#3333ff;">&#8216; Error Handling</span><br />
<span style="font-weight:bold;color:#3333ff;">&#8216; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</span><br />
<span style="font-weight:bold;color:#3333ff;">Err_Trap:</span><br />
<span style="font-weight:bold;color:#3333ff;">If Err &lt;&gt; 0 Then</span><br />
<span style="font-weight:bold;color:#3333ff;">Debug.Assert Err = 0</span><br />
<span style="font-weight:bold;color:#3333ff;">Err.Clear</span><br />
<span style="font-weight:bold;color:#3333ff;">End If</span><br />
<span style="font-weight:bold;color:#3333ff;">End Sub</span></p>
<p>This will be used to show the file name in the Text Box if a file is dragged and dropped into it</p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/drag-drop-files-to-text-box.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-04T19:37:00-07:00"><font color="#225588">7:37 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=3613080884876530796" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/TextBox%20Drag%20and%20Drop"><font color="#225588">TextBox Drag and Drop</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Drag%20and%20DRop%20Files%20to%20Text%20Box"><font color="#225588">VBA Drag and DRop Files to Text Box</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Visual%20Basic%20Drag%20and%20DRop%20Files%20to%20Text%20Box"><font color="#225588">Visual Basic Drag and DRop Files to Text Box</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/46/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/46/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/46/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/46/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/46/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=46&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/drag-drop-files-to-text-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Retrieve the file properties &#8211; VBA</title>
		<link>http://vbadud.wordpress.com/2007/12/04/retrieve-the-file-properties-vba/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/retrieve-the-file-properties-vba/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:25:29 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/retrieve-the-file-properties-vba/</guid>
		<description><![CDATA[Retrieve the file properties &#8211; VBA Sub Get_WorkBook_Properties() Dim oWB As Workbook &#8216; Here is the program to retrieve the file properties. Set oWB = ActiveWorkbook &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216; Coded by Shasur for http://vbadud.blogspot.com &#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8216;Get the Title property sTitle = oWB.BuiltinDocumentProperties(&#8220;Title&#8221;).Value &#8216;Get the Subject property sSubject = oWB.BuiltinDocumentProperties(&#8220;Subject&#8221;).Value &#8216;Get the Author property sAuthor = oWB.BuiltinDocumentProperties(&#8220;Author&#8221;).Value [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=45&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="2976014385099043604"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/retrieve-file-properties-vba.html">Retrieve the file properties &#8211; VBA</a></h3>
<p class="post-body entry-content">Sub Get_WorkBook_Properties()</p>
<p>Dim oWB As Workbook</p>
<p>&#8216; Here is the program to retrieve the file properties.</p>
<p>Set oWB = ActiveWorkbook</p>
<p>&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
&#8216; Coded by Shasur for http://vbadud.blogspot.com<br />
&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>&#8216;Get the Title property<br />
sTitle = oWB.BuiltinDocumentProperties(&#8220;Title&#8221;).Value</p>
<p>&#8216;Get the Subject property<br />
sSubject = oWB.BuiltinDocumentProperties(&#8220;Subject&#8221;).Value</p>
<p>&#8216;Get the Author property<br />
sAuthor = oWB.BuiltinDocumentProperties(&#8220;Author&#8221;).Value</p>
<p>&#8216;Get the Keywords property<br />
sKeywords = oWB.BuiltinDocumentProperties(&#8220;Keywords&#8221;).Value</p>
<p>&#8216;Get the Comments property<br />
sComments = oWB.BuiltinDocumentProperties(&#8220;Comments&#8221;).Value</p>
<p>&#8216;Get the Template property<br />
sTemplate = oWB.BuiltinDocumentProperties(&#8220;Template&#8221;).Value</p>
<p>&#8216;Get the Last author property<br />
sLastauthor = oWB.BuiltinDocumentProperties(&#8220;Last author&#8221;).Value</p>
<p>&#8216;Get the Revision number property<br />
sRevisionnumber = oWB.BuiltinDocumentProperties(&#8220;Revision number&#8221;).Value</p>
<p>&#8216;Get the Application name property<br />
sApplicationName = oWB.BuiltinDocumentProperties(&#8220;Application name&#8221;).Value</p>
<p>&#8216;Get the Last print date property<br />
sLastprintdate = oWB.BuiltinDocumentProperties(&#8220;Last print date&#8221;).Value</p>
<p>&#8216;Get the Creation date property<br />
sCreationdate = oWB.BuiltinDocumentProperties(&#8220;Creation date&#8221;).Value</p>
<p>&#8216;Get the Last save time property<br />
sLastsavetime = oWB.BuiltinDocumentProperties(&#8220;Last save time&#8221;).Value</p>
<p>&#8216;Get the Total editing time property<br />
sTotaleditingtime = oWB.BuiltinDocumentProperties(&#8220;Total editing time&#8221;).Value</p>
<p>&#8216;Get the Number of pages property<br />
sNumberofpages = oWB.BuiltinDocumentProperties(&#8220;Number of pages&#8221;).Value</p>
<p>&#8216;Get the Number of words property<br />
sNumberofwords = oWB.BuiltinDocumentProperties(&#8220;Number of words&#8221;).Value</p>
<p>&#8216;Get the Number of characters property<br />
sNumberofcharacters = oWB.BuiltinDocumentProperties(&#8220;Number of characters&#8221;).Value</p>
<p>&#8216;Get the Security property<br />
sSecurity = oWB.BuiltinDocumentProperties(&#8220;Security&#8221;).Value</p>
<p>&#8216;Get the Category property<br />
sCategory = oWB.BuiltinDocumentProperties(&#8220;Category&#8221;).Value</p>
<p>&#8216;Get the Format property<br />
sFormat = oWB.BuiltinDocumentProperties(&#8220;Format&#8221;).Value</p>
<p>&#8216;Get the Manager property<br />
sManager = oWB.BuiltinDocumentProperties(&#8220;Manager&#8221;).Value</p>
<p>&#8216;Get the Company property<br />
sCompany = oWB.BuiltinDocumentProperties(&#8220;Company&#8221;).Value</p>
<p>&#8216;Get the Number of bytes property<br />
sNumberofbytes = oWB.BuiltinDocumentProperties(&#8220;Number of bytes&#8221;).Value</p>
<p>&#8216;Get the Number of lines property<br />
sNumberoflines = oWB.BuiltinDocumentProperties(&#8220;Number of lines&#8221;).Value</p>
<p>&#8216;Get the Number of paragraphs property<br />
sNumberofparagraphs = oWB.BuiltinDocumentProperties(&#8220;Number of paragraphs&#8221;).Value</p>
<p>&#8216;Get the Number of slides property<br />
sNumberofslides = oWB.BuiltinDocumentProperties(&#8220;Number of slides&#8221;).Value</p>
<p>&#8216;Get the Number of notes property<br />
sNumberofnotes = oWB.BuiltinDocumentProperties(&#8220;Number of notes&#8221;).Value</p>
<p>&#8216;Get the Number of hidden Slides property<br />
sNumberofhiddenSlides = oWB.BuiltinDocumentProperties(&#8220;Number of hidden Slides&#8221;).Value</p>
<p>&#8216;Get the Number of multimedia clips property<br />
sNumberofmultimediaclips = oWB.BuiltinDocumentProperties(&#8220;Number of multimedia clips&#8221;).Value</p>
<p>&#8216;Get the Hyperlink base property<br />
sHyperlinkbase = oWB.BuiltinDocumentProperties(&#8220;Hyperlink base&#8221;).Value</p>
<p>&#8216;Get the Number of characters (with spaces) property<br />
sNumberofcharacters = oWB.BuiltinDocumentProperties(&#8220;Number of characters (with spaces)&#8221;).Value</p>
<p>&#8216;keywords: VBA Update File Properties, Macro to Update File Properties</p>
<p>End Sub</p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/retrieve-file-properties-vba.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-05T19:29:00-07:00"><font color="#225588">7:29 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=2976014385099043604" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Get%20the%20Title%20property"><font color="#225588">Get the Title property</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Macro%20to%20Update%20File%20Properties"><font color="#225588">Macro to Update File Properties</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Comments"><font color="#225588">VBA Comments</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Creation%20date"><font color="#225588">VBA Creation date</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Last%20save%20time"><font color="#225588">VBA Last save time</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Number%20of%20pages"><font color="#225588">VBA Number of pages</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Update%20File%20Properties"><font color="#225588">VBA Update File Properties</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/45/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/45/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/45/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/45/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/45/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=45&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/retrieve-the-file-properties-vba/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Visual Basic Get Screen Area</title>
		<link>http://vbadud.wordpress.com/2007/12/04/visual-basic-get-screen-area/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/visual-basic-get-screen-area/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:25:00 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/visual-basic-get-screen-area/</guid>
		<description><![CDATA[Visual Basic Get Screen Area Windows API Get Screen Area Declare Function GetSystemMetrics Lib &#8220;user32&#8243; _ (ByVal nIndex As Long) As Long Const SM_CXSCREEN As Long = 0 Const SM_CYSCREEN As Long = 1 Here is the VBA function using GetSystemMetrics to get the screen area Sub Get_Screen_Metrics() &#8216; Windows API Function to Get Screen [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=44&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="3868599597323112189"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/visual-basic-get-screen-area.html">Visual Basic Get Screen Area</a></h3>
<p class="post-body entry-content"><span style="color:#ff6600;">Windows API Get Screen Area</span><br />
<span style="color:#993399;"><br />
Declare Function GetSystemMetrics Lib &#8220;user32&#8243; _</span><br />
<span style="color:#993399;">(ByVal nIndex As Long) As Long</span><br />
<span style="color:#993399;">Const SM_CXSCREEN As Long = 0</span><br />
<span style="color:#993399;">Const SM_CYSCREEN As Long = 1</span></p>
<p>Here is the VBA function using <span style="color:#3333ff;">GetSystemMetrics to get the screen area</p>
<p></span><span style="color:#3333ff;">Sub Get_Screen_Metrics()</span></p>
<p><span style="color:#009900;">&#8216; Windows API Function to Get Screen Area</span></p>
<p><span style="color:#3333ff;">lx = GetSystemMetrics(SM_CXSCREEN)</span><br />
<span style="color:#3333ff;">ly = GetSystemMetrics(SM_CYSCREEN)</span></p>
<p><span style="color:#66ff99;">&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span><br />
<span style="color:#66ff99;">&#8216; Coded by Shasur for http://vbadud.blogspot.com</span><br />
<span style="color:#66ff99;">&#8216;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</span></p>
<p><span style="color:#3333ff;">MsgBox &#8220;The Screen Area is &#8221; &amp; lx &amp; &#8221; x &#8221; &amp; ly &amp; &#8221; pixels&#8221;</span></p>
<p><span style="color:#3333ff;">&#8216;<span style="color:#009900;"> Visual Basic Get Screen Area, Visual Basic Get Screen Height, Visual Basic Get Screen Width ,Windows API Get Screen Area, Windows API Get Screen Height, Windows API Get Screen Width</span></span><br />
<span style="color:#3333ff;">End Sub</span></p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/visual-basic-get-screen-area.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-05T19:31:00-07:00"><font color="#225588">7:31 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=3868599597323112189" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/GetSystemMetrics"><font color="#225588">GetSystemMetrics</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Visual%20Basic%20Get%20Screen%20Area"><font color="#225588">Visual Basic Get Screen Area</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Visual%20Basic%20Get%20Screen%20Height"><font color="#225588">Visual Basic Get Screen Height</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Visual%20Basic%20Get%20Screen%20Width"><font color="#225588">Visual Basic Get Screen Width</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Windows%20API%20Get%20Screen%20Area"><font color="#225588">Windows API Get Screen Area</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Windows%20API%20Get%20Screen%20Height"><font color="#225588">Windows API Get Screen Height</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Windows%20API%20Get%20Screen%20Width"><font color="#225588">Windows API Get Screen Width</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/44/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/44/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=44&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/visual-basic-get-screen-area/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Add Combo Box to the command Bar</title>
		<link>http://vbadud.wordpress.com/2007/12/04/add-combo-box-to-the-command-bar/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/add-combo-box-to-the-command-bar/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:24:42 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Word VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/add-combo-box-to-the-command-bar/</guid>
		<description><![CDATA[Add Combo Box to the command Bar Add Combo Box to the command Bar Sub Show_Combo_CommandBar() Dim oCB As CommandBar Dim oCtl As CommandBarComboBox On Error Resume Next &#8216;Delete Control From CommandBar CommandBars(&#8220;Sample Command Bar&#8221;).Delete Set oCB = CommandBars.Add oCB.Name = &#8220;Sample Command Bar&#8221; oCB.AdaptiveMenu = True &#8216;Add Control to CommandBar Set oCtl = oCB.Controls.Add(Type:=msoControlComboBox) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=43&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="6530811781943884635"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/add-combo-box-to-command-bar.html">Add Combo Box to the command Bar</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Add Combo Box to the command Bar</span></p>
<p>Sub Show_Combo_CommandBar()</p>
<p>Dim oCB As CommandBar<br />
Dim oCtl As CommandBarComboBox</p>
<p>On Error Resume Next</p>
<p><span style="color:#009900;">&#8216;Delete Control From CommandBar</span><br />
CommandBars(&#8220;Sample Command Bar&#8221;).Delete</p>
<p>Set oCB = CommandBars.Add<br />
oCB.Name = &#8220;Sample Command Bar&#8221;<br />
oCB.AdaptiveMenu = True</p>
<p><span style="color:#009900;">&#8216;Add Control to CommandBar</span><br />
Set oCtl = oCB.Controls.Add(Type:=msoControlComboBox)<br />
oCtl.Caption = &#8220;ComboSamp&#8221;</p>
<p><span style="color:#009900;">&#8216;Link Macro to CommandBar,</span><br />
oCtl.OnAction = &#8220;Change_Header_Background&#8221;</p>
<p><span style="color:#009900;">&#8216;Add list Item to Combo Box Control </span><br />
oCtl.AddItem &#8220;NoColor&#8221;<br />
oCtl.AddItem &#8220;Blue&#8221;<br />
oCtl.AddItem &#8220;Yellow&#8221;</p>
<p>&#8216; <span style="color:#009900;">Show the Command Bar</span><br />
oCB.Visible = True</p>
<p>&#8216; Place the CommandBar at the bottom of the screen<br />
oCB.Position = msoBarBottom</p>
<p>End Sub</p>
<p>Sub Change_Header_Background()</p>
<p><span style="color:#009900;">&#8216; Acts based on the value in the Combo Box</span></p>
<p>Dim oCB As CommandBar<br />
Dim oCtl As CommandBarComboBox</p>
<p>On Error Resume Next</p>
<p>Set oCB = CommandBars(&#8220;Sample Command Bar&#8221;)</p>
<p>Set oCtl = oCB.Controls(&#8220;ComboSamp&#8221;)</p>
<p>If oCtl.ListIndex &lt;&gt; -1 Then</p>
<p>Select Case oCtl.ListIndex</p>
<p>Case 1</p>
<p>ActiveSheet.Rows(1).Interior.ColorIndex = 0</p>
<p>Case 2</p>
<p>ActiveSheet.Rows(1).Interior.ColorIndex = 5</p>
<p>Case 3</p>
<p>ActiveSheet.Rows(1).Interior.ColorIndex = 36</p>
<p>Case Else</p>
<p>&#8216; Do nothing</p>
<p>End Select</p>
<p>End If</p>
<p>&#8216; Show the Command Bar<br />
oCB.Visible = True</p>
<p>&#8216; Place the CommandBar at the bottom of the screen<br />
oCB.Position = msoBarBottom</p>
<p>End Sub</p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/add-combo-box-to-command-bar.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-07T19:05:00-07:00"><font color="#225588">7:05 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=6530811781943884635" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Add%20Combo%20Box%20to%20the%20command%20Bar"><font color="#225588">Add Combo Box to the command Bar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Add%20Control%20to%20CommandBar"><font color="#225588">Add Control to CommandBar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Delete%20Control%20From%20CommandBar"><font color="#225588">Delete Control From CommandBar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20CommandBars"><font color="#225588">VBA CommandBars</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Customize%20Command%20Bar"><font color="#225588">VBA Customize Command Bar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Link%20Macro%20to%20CommandBar"><font color="#225588">VBA Link Macro to CommandBar</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/43/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/43/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/43/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/43/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/43/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=43&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/add-combo-box-to-the-command-bar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
		<item>
		<title>Display ToolTipText in CommandBar Controls</title>
		<link>http://vbadud.wordpress.com/2007/12/04/display-tooltiptext-in-commandbar-controls/</link>
		<comments>http://vbadud.wordpress.com/2007/12/04/display-tooltiptext-in-commandbar-controls/#comments</comments>
		<pubDate>Tue, 04 Dec 2007 13:24:20 +0000</pubDate>
		<dc:creator>vbadud</dc:creator>
				<category><![CDATA[Excel VBA]]></category>
		<category><![CDATA[VBA]]></category>
		<category><![CDATA[Visual Basic]]></category>
		<category><![CDATA[Word VBA]]></category>

		<guid isPermaLink="false">http://vbadud.wordpress.com/2007/12/04/display-tooltiptext-in-commandbar-controls/</guid>
		<description><![CDATA[Add ToolTipText in CommandBar Controls Display ToolTipText in CommandBar Controls Sub Show_ToolTipText_In_Controls() Dim oCB As CommandBar Dim oCtl As CommandBarControl On Error Resume Next &#8216; Delete Existing Command Bar CommandBars(&#8220;MyProject&#8221;).Delete &#8216;Create New Command Bar Set oCB = CommandBars.Add oCB.Name = &#8220;MyProject&#8221; oCB.AdaptiveMenu = True Set oCtl = oCB.Controls.Add(Type:=msoControlButton) oCtl.Caption = &#8220;Show Message Box&#8221; oCtl.TooltipText = [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=42&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p class="post hentry uncustomized-post-template"><a name="717944500098467489"></a></p>
<h3 class="post-title entry-title"><a href="http://vbadud.blogspot.com/2007/05/add-tooltiptext-in-commandbar-controls.html">Add ToolTipText in CommandBar Controls</a></h3>
<p class="post-body entry-content"><span style="font-weight:bold;color:#ff6600;">Display ToolTipText in CommandBar Controls</span></p>
<p>Sub Show_ToolTipText_In_Controls()</p>
<p>Dim oCB As CommandBar<br />
Dim oCtl As CommandBarControl</p>
<p>On Error Resume Next</p>
<p>&#8216; Delete Existing Command Bar<br />
CommandBars(&#8220;MyProject&#8221;).Delete</p>
<p>&#8216;Create New Command Bar<br />
Set oCB = CommandBars.Add<br />
oCB.Name = &#8220;MyProject&#8221;<br />
oCB.AdaptiveMenu = True</p>
<p>Set oCtl = oCB.Controls.Add(Type:=msoControlButton)<br />
oCtl.Caption = &#8220;Show Message Box&#8221;<br />
oCtl.TooltipText = &#8220;This is a sample&#8221;<br />
oCtl.OnAction = &#8220;Display_Msg_Box&#8221;<br />
oCtl.SetFocus</p>
<p>&#8216; Show the Command Bar<br />
oCB.Visible = True</p>
<p>&#8216; Place the CommandBar at the bottom of the screen<br />
oCB.Position = msoBarBottom</p>
<p>End Sub</p>
<p>Sub Display_Msg_Box()</p>
<p>MsgBox &#8220;You have clicked me!!!&#8221;</p>
<p>End Sub</p>
<p class="post-footer">
<p class="post-footer-line post-footer-line-1"><span class="post-author vcard">Posted by <span class="fn">Shasur</span> </span><span class="post-timestamp">at <a rel="bookmark" href="http://vbadud.blogspot.com/2007/05/add-tooltiptext-in-commandbar-controls.html" title="permanent link" class="timestamp-link"><abbr title="2007-05-07T19:09:00-07:00"><font color="#225588">7:09 PM</font></abbr></a> </span><span class="post-comment-link"></span><span class="post-backlinks post-comment-link"></span><span class="post-icons"><span class="item-control blog-admin pid-58049851"><a href="http://www.blogger.com/post-edit.g?blogID=28492262&amp;postID=717944500098467489" title="Edit Post"><font color="#225588"><span class="quick-edit-icon"> </span> </font></a></span></span></p>
<p class="post-footer-line post-footer-line-2"><span class="post-labels">Labels: <a rel="tag" href="http://vbadud.blogspot.com/search/label/Add%20Command%20to%20Tools%20menu"><font color="#225588">Add Command to Tools menu</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Add%20Control%20to%20CommandBar"><font color="#225588">Add Control to CommandBar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Add%20ToolTipText%20in%20CommandBar"><font color="#225588">Add ToolTipText in CommandBar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Create%20New%20Command%20Bar"><font color="#225588">Create New Command Bar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Delete%20Command%20Bar"><font color="#225588">Delete Command Bar</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/Display%20ToolTipText%20in%20CommandBar%20Controls"><font color="#225588">Display ToolTipText in CommandBar Controls</font></a>, <a rel="tag" href="http://vbadud.blogspot.com/search/label/VBA%20Command%20Bars"><font color="#225588">VBA Command Bars</font></a> </span></p>
<p class="post-footer-line post-footer-line-3">&nbsp;</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vbadud.wordpress.com/42/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vbadud.wordpress.com/42/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vbadud.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vbadud.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vbadud.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vbadud.wordpress.com&amp;blog=2046238&amp;post=42&amp;subd=vbadud&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://vbadud.wordpress.com/2007/12/04/display-tooltiptext-in-commandbar-controls/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/de5fc3c7f573ab459e043ea3fc8e407a?s=96&#38;d=identicon" medium="image">
			<media:title type="html">vbadud</media:title>
		</media:content>
	</item>
	</channel>
</rss>
