<?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/"
	>

<channel>
	<title>Access Excel VBA</title>
	<atom:link href="http://www.hatekonysag.hu/aevb/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.hatekonysag.hu/aevb</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Wed, 29 Jun 2011 18:55:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Fake item in dropdown &#8211; MS Access SQL trick</title>
		<link>http://www.hatekonysag.hu/aevb/?p=59</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=59#comments</comments>
		<pubDate>Tue, 09 Jun 2009 21:32:03 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[database]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[MS Access]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=59</guid>
		<description><![CDATA[I often use a combobox to filter.For an example, when browsing between the tasks assigned to the staff, it can be selected, which co-workers jobs should be displayed.It occurs sometimes, that in an Access form we have to include to a combobox / dropdown list an “Any/All” item, which can be used, when we don’t [...]]]></description>
			<content:encoded><![CDATA[<p>I often use a combobox to filter.For an example, when browsing between the tasks assigned to the staff, it can be selected, which co-workers jobs should be displayed.It occurs sometimes, that in an Access form we have to include to a combobox / dropdown list an “Any/All” item, which can be used, when we don’t want to filter according to the co-workers.I have a stylish/interesting solution for this problem.I create a query, which shows only the active records in alphabetical order.It looks like this:<img src="http://www.access-excel-vba.com/pictures/allrecord.png" alt="ms access query in design view" title="Fake item in dropdown   MS Access SQL trick" />The joker record is not yet included.I open the query for editing (View/SQL view).<br />
<blockquote><code>SELECT tblUser.userID, tblUser.username<br />FROM tblUser<br />WHERE (((tblUser.active)=True))<br />ORDER BY tblUser.username;</code></p></blockquote>
<p>I change the query source to:<br />
<blockquote><code>SELECT tblUser.userID, tblUser.username<br />FROM tblUser<br />WHERE (((tblUser.active)=True))<br /><strong>UNION SELECT 0, 'All'<br />FROM tblUser<br />WHERE (((tblUser.userID)=1))</strong><br />ORDER BY tblUser.username;</code></p></blockquote>
<p>I base my virtual record on another record, but I assign its values myself.Therefore my query returns an enlarged list.When using on a form, I set the default value of the dropdown list to 0.I set the dropdown’s update event that when it is set to 0 the filter omits this dropdown, and in all other cases it omits the selected one.I hope you liked this hint.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=59</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secret of the giant excel array formula</title>
		<link>http://www.hatekonysag.hu/aevb/?p=47</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=47#comments</comments>
		<pubDate>Wed, 18 Mar 2009 12:10:27 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[developer]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=47</guid>
		<description><![CDATA[I’ve already mentioned this on Twitter: # The secret of my giant excel array formula is soon to be revealed. 928 characters, 78 left braces, 76 function in a cell.# My Excel monster-formula makes 240 cells needless. Half as many lines are enough 9:13 AM Mar 16th from web# What do you think, how can [...]]]></description>
			<content:encoded><![CDATA[<p>I’ve already mentioned this on Twitter:<br />
<blockquote># The secret of my giant excel array formula is soon to be revealed. 928 characters, 78 left braces, 76 function in a cell.# My Excel monster-formula makes 240 cells needless. Half as many lines are enough <img src='http://www.hatekonysag.hu/aevb/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' title="Secret of the giant excel array formula" />  9:13 AM Mar 16th from web# What do you think, how can such a big formula be maintained? Tomorrow I’ll give you the answer.10:39 AM Mar 17th from web# Here’s the great day, and the secret of the giant excel array formula.3 minutes ago from web</p></blockquote>
<p>One of my customers needed an auxiliary line to perform a calculation reoccurring in every line.This broke the unity of the whole system and made it quite hard to use.My formula was much simpler at the beginning, but I improved it so many times that it became gigantic.It is not easy to review a formula of such size, and to maintain it the traditional way is quite impossible.I turned to VBA for a solution. I pieced the formula together in a macro.I created variables for the recurring parts of the formula, which could even follow from each other:<br />
<blockquote><code>strDate = "R" &#038; intDateRow &#038; "C"strIndex = "IF(RC" &#038; intIndexColumn &#038; "=0, R24C15, RC" &#038; intIndexColumn &#038; ")"strMonthStartDate = "DATE(YEAR(" &#038; strDate &#038; "),MONTH(" &#038; strDate &#038; ")+1,1)"strMonthEndDate = "DATE(YEAR(" &#038; strDate &#038; "),MONTH(" &#038; strDate &#038; ")+1,0)"</code></p></blockquote>
<p>Than from these variables I aggregated the whole function.By breaking apart the formula, it remained maintainable, and comprehensible.This was one of the great secrets, I gathered together in 9 years of Excel programming, but there are a lot more.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=47</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error communicating with the OLE server or ActiveX Control</title>
		<link>http://www.hatekonysag.hu/aevb/?p=44</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=44#comments</comments>
		<pubDate>Thu, 12 Mar 2009 12:28:45 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[developer]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=44</guid>
		<description><![CDATA[Several MS Access databases working on one computer and they don&#8217;t work on another.The error message belongs to the forms of the database.When you click on a button, MS Access gives this error message: Error communicating with the OLE server or ActiveX Control The error is generally caused by the use of special characters in [...]]]></description>
			<content:encoded><![CDATA[<p>Several MS Access databases working on one computer and they don&#8217;t work on another.The error message belongs to the forms of the database.When you click on a button, MS Access gives this error message:<br />
<blockquote><strong>Error communicating with the OLE server or ActiveX Control</strong></p></blockquote>
<p>The error is generally caused by the use of special characters in object names.When you create a form in Hungarian or other localized Access you will see, that the objects on the form get problematic names (Labels &#8211; Címke, Header &#8211; Űrlapfej, Footer &#8211; Űrlapláb, Combobox &#8211; KombináltLista etc.)The solution:1. You have to rename the special named objects on the problematic form.2. If the error remained then create a new mdb file and import all objects from your old mdb.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=44</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Relative range names in practice</title>
		<link>http://www.hatekonysag.hu/aevb/?p=41</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=41#comments</comments>
		<pubDate>Mon, 16 Feb 2009 16:01:30 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[excel]]></category>
		<category><![CDATA[power user]]></category>
		<category><![CDATA[range names]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=41</guid>
		<description><![CDATA[With range names you can do big tricks with excel.I will show you one of these tricks today]]></description>
			<content:encoded><![CDATA[<p>With range names you can do big tricks with excel.I will show you one of these tricks today:When you define a range name, then excel will propose the absolute cell reference as default.But you can use a relative or a mixed reference too.The active cell is the starting point.You have to create your reference like you would write into that cell.My trick is:
<ol>
<li>Select A2 cell.</li>
<li>Choose Insert &#8211;> Name &#8211;> Define</li>
<li>Type a name for the range: &#8220;Last&#8221;</li>
<li>Write in the refers to box &#8220;=A1&#8243; without quotes and without dollar signs.</li>
<li>Give a name to this range, for example &#8220;last&#8221;</li>
</ol>
<p>This range name will refer to the upper cell to the current position.It can be used like this:<br />
<blockquote><code>=SUM(B2:Last) </code></p></blockquote>
<p>will give you a dynamic range that will grow or shrink when you insert or delete some rows, even if the deleted row is the last row from the range.This is a perfect solution.If you insert multiple rows and don&#8217;t fill every cell, the normal reference will not upgrade, the relative name will always work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=41</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Illustrated Excel keyboard shortcuts</title>
		<link>http://www.hatekonysag.hu/aevb/?p=27</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=27#comments</comments>
		<pubDate>Mon, 02 Feb 2009 19:13:27 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[Calc]]></category>
		<category><![CDATA[excel]]></category>
		<category><![CDATA[hotkeys]]></category>
		<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[shortcuts]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=27</guid>
		<description><![CDATA[It can make our work quicker, if we execute most of the tasks from the keyboard, and use the mouse less frequently.If someone is familiar with a few keyboard shortcuts, he/ she will know the name is not given by chance.With one of my colleagues we created a reminder note, which contains the Microsoft Excel [...]]]></description>
			<content:encoded><![CDATA[<p>It can make our work quicker, if we execute most of the tasks from the keyboard, and use the mouse less frequently.If someone is familiar with a few keyboard shortcuts, he/ she will know the name is not given by chance.With one of my colleagues we created a reminder note, which contains the Microsoft Excel hotkeys for the moves. You can print it on a normal sheet, and put it next to your monitor, to be in view, so you can learn it easily.Please click on the link to download it: <a href="http://www.access-excel-vba.com/ms_excel_keyboard_shortcuts.pdf" title="microsoft excel hotkeys">http://www.access-excel-vba.com/ms_excel_keyboard_shortcuts.pdf</a><object width="600" height="480" data="http://d.scribd.com/ScribdViewer.swf?document_id=11528711&amp;access_key=key-2mprmfm8hi037clq4qo4&amp;page=1&amp;version=1&amp;viewMode=list" type="application/x-shockwave-flash"><param name="id" value="doc_965281589215266" /><param name="name" value="doc_965281589215266" /><param name="align" value="middle" /><param name="quality" value="high" /><param name="play" value="true" /><param name="loop" value="true" /><param name="scale" value="showall" /><param name="wmode" value="opaque" /><param name="devicefont" value="false" /><param name="bgcolor" value="#ffffff" /><param name="menu" value="true" /><param name="allowFullScreen" value="true" /><param name="allowScriptAccess" value="always" /><param name="mode" value="list" /><param name="src" value="http://d.scribd.com/ScribdViewer.swf?document_id=11528711&amp;access_key=key-2mprmfm8hi037clq4qo4&amp;page=1&amp;version=1&amp;viewMode=list" /><param name="allowfullscreen" value="true" /></object>The keystrokes works with <strong>OpenOffice Calc</strong> too.Other useful resources:<a href="http://exceltip.com/news/excel-shortcut-heaven.html">http://exceltip.com/news/excel-shortcut-heaven.html</a><a href="http://tricks-4-fun.blogspot.com/2008/09/best-excel-shortcuts.html">http://tricks-4-fun.blogspot.com/2008/09/best-excel-shortcuts.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=27</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>VBA Error Handling with line numbers</title>
		<link>http://www.hatekonysag.hu/aevb/?p=5</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=5#comments</comments>
		<pubDate>Wed, 28 Jan 2009 21:59:34 +0000</pubDate>
		<dc:creator>Zoltan Till</dc:creator>
				<category><![CDATA[developer]]></category>
		<category><![CDATA[error handling]]></category>
		<category><![CDATA[power user]]></category>
		<category><![CDATA[programmer]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[vbe]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=5</guid>
		<description><![CDATA[Sometimes it is easier to find an error in the VBE if we know the code line where the error occurred. I have a method to show this in an error message.]]></description>
			<content:encoded><![CDATA[<p>Sometimes it is easier to find an error if we know the code line where the error occurred. I have a method to show this in an error message.This is a light version of my error handler and focuses only to the line number of the error.There is a variable called “erl” which contains the line number of the error, so we can use it in the error message:<br />
<blockquote><code>MsgBox Err.Number &amp; " - " &amp; Erl &amp; " - " Err.Description</code></p></blockquote>
<p>But this will show 0 instead of the line number if we didn&#8217;t put numbers at the beginning of the rows.<a title="Daily dose of Excel" href="http://www.dailydoseofexcel.com/archives/2006/03/13/counting-code-lines/" target="_blank">Dick Kusleika wrote about the MZ Tools</a>, and <a title="MZTools Addin" href="http://www.mztools.com/v3/download.aspx" target="_blank">MZTools</a> is a great tool for this too.There is an &#8220;add line number&#8221; icon on the toolbar which made the line numbering in my stead.<div class="wp-caption alignnone" style="width: 613px"><img title="Add Line Number icon in MZTools for Excel VBA" src="http://www.access-excel-vba.com/pictures/addlinenr.png" alt="Add Line Number Icon" width="603" height="70" /><p class="wp-caption-text">Add Line Number Icon</p></div>Voila, it is done, and we can use it.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=5</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>This is the beginning of a beautiful blog&#8230;</title>
		<link>http://www.hatekonysag.hu/aevb/?p=74</link>
		<comments>http://www.hatekonysag.hu/aevb/?p=74#comments</comments>
		<pubDate>Sun, 04 Jan 2009 23:28:18 +0000</pubDate>
		<dc:creator>gbLOBTMlZ6pRjpiykN</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.access-excel-vba.com/?p=3</guid>
		<description><![CDATA[A new Excel, Access, VBA blog arrived onto this world.The happy father is Zoltan Till, a Hungarian developer from Budapest.Yes, that’s me!I’ve created a wide variety of business applications since 2000. I&#8217;m a Hungarian programmer, trainer, presenter in conferences, and consultant from Budapest. My favorite topic is Excel but I&#8217;ll also write of some other [...]]]></description>
			<content:encoded><![CDATA[<p>A new Excel, Access, VBA blog arrived onto this world.The happy father is Zoltan Till, a Hungarian developer from Budapest.Yes, that’s me!I’ve created a wide variety of business applications since 2000. I&#8217;m a Hungarian programmer, trainer, presenter in conferences, and consultant from Budapest. My favorite topic is Excel but I&#8217;ll also write of some other subjects because I have been working with SAP, Oracle, MS SQL, Lotus Notes / Domino, and BO (Business Objects) too.The adventure begins soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hatekonysag.hu/aevb/?feed=rss2&#038;p=74</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

