<?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>UC&#039;s Corner &#187; vba</title>
	<atom:link href="http://yussi.nl/index.php/tag/vba/feed" rel="self" type="application/rss+xml" />
	<link>http://yussi.nl</link>
	<description>Yussi Ariefiyono</description>
	<lastBuildDate>Fri, 25 Jun 2010 12:57:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>File in use Vb</title>
		<link>http://yussi.nl/index.php/file-in-use-vb.html</link>
		<comments>http://yussi.nl/index.php/file-in-use-vb.html#comments</comments>
		<pubDate>Tue, 20 Apr 2010 07:11:36 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vb]]></category>
		<category><![CDATA[file in use]]></category>
		<category><![CDATA[username]]></category>
		<category><![CDATA[vba]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=105</guid>
		<description><![CDATA[just found nice code in internet, and i use it in one of my project. works great!
it will return the last user that open the file
Function LastUser(strPath As String)  As String
&#8216;// Code by Helen from  http://www.xtremevbtalk.com/index.php?s=
&#8216;// This routine gets the Username  of the File In Use
&#8216;// Credit goes to Helen for code <a href="http://yussi.nl/index.php/file-in-use-vb.html" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>just found nice code in internet, and i use it in one of my project. works great!<br />
it will return the last user that open the file</p>
<blockquote><p>Function LastUser(strPath As String)  As String</p>
<p>&#8216;// Code by Helen from  http://www.xtremevbtalk.com/index.php?s=</p>
<p>&#8216;// This routine gets the Username  of the File In Use</p>
<p>&#8216;// Credit goes to Helen for code  &amp; Mike for the idea</p>
<p>&#8216;// Amendment 25th June  2004</p>
<p>&#8216;// : Name changes will show old  setting</p>
<p>&#8216;// : you need to get the Len of the  Name store just before</p>
<p>&#8216;// : the double Padded  nullstrings</p>
<p>Dim text As  String</p>
<p>Dim strFlag1 As String, strflag2 As  String</p>
<p>Dim i As Integer, j As  Integer</p>
<p>Dim hdlFile As  Long</p>
<p>Dim lNameLen As  Byte</p>
<p>strFlag1 = Chr(0) &amp;  Chr(0)</p>
<p>strflag2 = Chr(32) &amp;  Chr(32)</p>
<p>hdlFile =  FreeFile</p>
<p>Open strPath For Binary As  #hdlFile</p>
<p>text =  Space(LOF(hdlFile))</p>
<p>Get 1, ,  text</p>
<p>Close  #hdlFile</p>
<p>j = InStr(1, text,  strflag2)</p>
<p>i = InStrRev(text, strFlag1, j) +  Len(strFlag1)</p>
<p>lNameLen = Asc(Mid(text, i &#8211; 3,  1))</p>
<p>LastUser = Mid(text, i,  lNameLen)</p>
<p><span style="font-family: Arial; font-size: x-small;">End  Function</span></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/file-in-use-vb.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>List of SendKeys</title>
		<link>http://yussi.nl/index.php/list-of-sendkeys.html</link>
		<comments>http://yussi.nl/index.php/list-of-sendkeys.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:40:50 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[vba]]></category>
		<category><![CDATA[sendkeys]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=53</guid>
		<description><![CDATA[


Key
Code


BACKSPACE
{BACKSPACE}, {BS}, or {BKSP}


BREAK
{BREAK}


CAPS LOCK
{CAPSLOCK}


DEL or DELETE
{DELETE} or {DEL}


DOWN ARROW
{DOWN}


END
{END}


ENTER
{ENTER}or ~


ESC
{ESC}


HELP
{HELP}


HOME
{HOME}


INS or INSERT
{INSERT} or {INS}


LEFT ARROW
{LEFT}


NUM LOCK
{NUMLOCK}


PAGE DOWN
{PGDN}


PAGE UP
{PGUP}


PRINT SCREEN
{PRTSC} (reserved for future use)


RIGHT ARROW
{RIGHT}


SCROLL LOCK
{SCROLLLOCK}


TAB
{TAB}


UP ARROW
{UP}


F1
{F1}


F2
{F2}


F3
{F3}


F4
{F4}


F5
{F5}


F6
{F6}


F7
{F7}


F8
{F8}


F9
{F9}


F10
{F10}


F11
{F11}


F12
{F12}


F13
{F13}


F14
{F14}


F15
{F15}


F16
{F16}


Keypad add
{ADD}


Keypad subtract
{SUBTRACT}


Keypad multiply
{MULTIPLY}


Keypad divide
{DIVIDE}






Key
Code


SHIFT
+


CTRL
^


ALT
%



]]></description>
			<content:encoded><![CDATA[<table style="height: 1074px;" width="373">
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">BACKSPACE</td>
<td width="50%">{BACKSPACE}, {BS}, or {BKSP}</td>
</tr>
<tr valign="top">
<td width="50%">BREAK</td>
<td width="50%">{BREAK}</td>
</tr>
<tr valign="top">
<td width="50%">CAPS LOCK</td>
<td width="50%">{CAPSLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">DEL or DELETE</td>
<td width="50%">{DELETE} or {DEL}</td>
</tr>
<tr valign="top">
<td width="50%">DOWN ARROW</td>
<td width="50%">{DOWN}</td>
</tr>
<tr valign="top">
<td width="50%">END</td>
<td width="50%">{END}</td>
</tr>
<tr valign="top">
<td width="50%">ENTER</td>
<td width="50%">{ENTER}or ~</td>
</tr>
<tr valign="top">
<td width="50%">ESC</td>
<td width="50%">{ESC}</td>
</tr>
<tr valign="top">
<td width="50%">HELP</td>
<td width="50%">{HELP}</td>
</tr>
<tr valign="top">
<td width="50%">HOME</td>
<td width="50%">{HOME}</td>
</tr>
<tr valign="top">
<td width="50%">INS or INSERT</td>
<td width="50%">{INSERT} or {INS}</td>
</tr>
<tr valign="top">
<td width="50%">LEFT ARROW</td>
<td width="50%">{LEFT}</td>
</tr>
<tr valign="top">
<td width="50%">NUM LOCK</td>
<td width="50%">{NUMLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE DOWN</td>
<td width="50%">{PGDN}</td>
</tr>
<tr valign="top">
<td width="50%">PAGE UP</td>
<td width="50%">{PGUP}</td>
</tr>
<tr valign="top">
<td width="50%">PRINT SCREEN</td>
<td width="50%">{PRTSC} (reserved for future use)</td>
</tr>
<tr valign="top">
<td width="50%">RIGHT ARROW</td>
<td width="50%">{RIGHT}</td>
</tr>
<tr valign="top">
<td width="50%">SCROLL LOCK</td>
<td width="50%">{SCROLLLOCK}</td>
</tr>
<tr valign="top">
<td width="50%">TAB</td>
<td width="50%">{TAB}</td>
</tr>
<tr valign="top">
<td width="50%">UP ARROW</td>
<td width="50%">{UP}</td>
</tr>
<tr valign="top">
<td width="50%">F1</td>
<td width="50%">{F1}</td>
</tr>
<tr valign="top">
<td width="50%">F2</td>
<td width="50%">{F2}</td>
</tr>
<tr valign="top">
<td width="50%">F3</td>
<td width="50%">{F3}</td>
</tr>
<tr valign="top">
<td width="50%">F4</td>
<td width="50%">{F4}</td>
</tr>
<tr valign="top">
<td width="50%">F5</td>
<td width="50%">{F5}</td>
</tr>
<tr valign="top">
<td width="50%">F6</td>
<td width="50%">{F6}</td>
</tr>
<tr valign="top">
<td width="50%">F7</td>
<td width="50%">{F7}</td>
</tr>
<tr valign="top">
<td width="50%">F8</td>
<td width="50%">{F8}</td>
</tr>
<tr valign="top">
<td width="50%">F9</td>
<td width="50%">{F9}</td>
</tr>
<tr valign="top">
<td width="50%">F10</td>
<td width="50%">{F10}</td>
</tr>
<tr valign="top">
<td width="50%">F11</td>
<td width="50%">{F11}</td>
</tr>
<tr valign="top">
<td width="50%">F12</td>
<td width="50%">{F12}</td>
</tr>
<tr valign="top">
<td width="50%">F13</td>
<td width="50%">{F13}</td>
</tr>
<tr valign="top">
<td width="50%">F14</td>
<td width="50%">{F14}</td>
</tr>
<tr valign="top">
<td width="50%">F15</td>
<td width="50%">{F15}</td>
</tr>
<tr valign="top">
<td width="50%">F16</td>
<td width="50%">{F16}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad add</td>
<td width="50%">{ADD}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad subtract</td>
<td width="50%">{SUBTRACT}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad multiply</td>
<td width="50%">{MULTIPLY}</td>
</tr>
<tr valign="top">
<td width="50%">Keypad divide</td>
<td width="50%">{DIVIDE}</td>
</tr>
</tbody>
</table>
<table>
<tbody>
<tr valign="top">
<th width="50%">Key</th>
<th width="50%">Code</th>
</tr>
<tr valign="top">
<td width="50%">SHIFT</td>
<td width="50%">+</td>
</tr>
<tr valign="top">
<td width="50%">CTRL</td>
<td width="50%">^</td>
</tr>
<tr valign="top">
<td width="50%">ALT</td>
<td width="50%">%</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/list-of-sendkeys.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check if table is exist vba</title>
		<link>http://yussi.nl/index.php/check-if-table-is-exist-vba.html</link>
		<comments>http://yussi.nl/index.php/check-if-table-is-exist-vba.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:21:13 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[msaccess]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=50</guid>
		<description><![CDATA[Problem:
Check if table is exist
Solution:
Option Compare Database
Public Function TableExists(strTable As String) As Boolean
Dim strName As String
On Error Resume Next
&#8216;If table exists already then strName will be &#62; &#8220;&#8221;
strName = CurrentDb.TableDefs(strTable).name
TableExists = Not (strName = &#8220;&#8221;)
End Function
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:<br />
</strong>Check if table is exist</p>
<p><strong>Solution:</strong><br />
Option Compare Database<br />
Public Function TableExists(strTable As String) As Boolean<br />
Dim strName As String</p>
<p>On Error Resume Next<br />
&#8216;If table exists already then strName will be &gt; &#8220;&#8221;<br />
strName = CurrentDb.TableDefs(strTable).name<br />
TableExists = Not (strName = &#8220;&#8221;)<br />
End Function</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/check-if-table-is-exist-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Shell and AppActivate command vba</title>
		<link>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html</link>
		<comments>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:16:37 +0000</pubDate>
		<dc:creator>yussi ariefiyono</dc:creator>
				<category><![CDATA[vba]]></category>
		<category><![CDATA[AppActivate]]></category>
		<category><![CDATA[msaccess]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[vb]]></category>

		<guid isPermaLink="false">http://yussi.nl/?p=48</guid>
		<description><![CDATA[Problem:
You want to open the file using send key, and active it as a window
Solution:
&#8216;Define the task ID
Dim dTaskID As Integer
&#8216;Open the file with your application
dTaskID = Shell(&#8220;applicationYouWantToOpenWith.EXE path+nameofthefile&#8221;)
&#8216;Make it active window
AppActivate (dTaskID)
]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong><br />
You want to open the file using send key, and active it as a window</p>
<p><strong>Solution:</strong></p>
<p><em>&#8216;Define the task ID</em><br />
Dim dTaskID As Integer<br />
<em>&#8216;Open the file with your application</em><br />
dTaskID = Shell(&#8220;applicationYouWantToOpenWith.EXE path+nameofthefile&#8221;)<br />
<em>&#8216;Make it active window</em><br />
AppActivate (dTaskID)</p>
]]></content:encoded>
			<wfw:commentRss>http://yussi.nl/index.php/shell-and-appactivate-command-vba.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
