<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: User Initials in Excel</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Wed, 08 Feb 2012 23:58:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Excel Todo List for Project Management : Template, Tutorial and Dowload &#124; Pointy Haired Dilbert: Charting & Excel Tips - Chandoo.org</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-41507</link>
		<dc:creator>Excel Todo List for Project Management : Template, Tutorial and Dowload &#124; Pointy Haired Dilbert: Charting & Excel Tips - Chandoo.org</dc:creator>
		<pubDate>Tue, 06 Oct 2009 15:13:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-41507</guid>
		<description>&lt;p&gt;[...] could be to automatically load user&#039;s name based on windows login ID. For more on this, see this article on [...]&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>[...] could be to automatically load user&#8217;s name based on windows login ID. For more on this, see this article on [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Herbert</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34616</link>
		<dc:creator>Simon Herbert</dc:creator>
		<pubDate>Tue, 02 Sep 2008 12:11:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34616</guid>
		<description>&lt;p&gt;Hans - no problem...&lt;/p&gt;
&lt;p&gt;Trying to post my code again:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; objword &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Object&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; objword = CreateObject(&lt;span class=&quot;st0&quot;&gt;&quot;Word.Application&quot;&lt;/span&gt;)&lt;br&gt;
MsgBox &lt;span class=&quot;st0&quot;&gt;&quot;Name: &quot;&lt;/span&gt; &amp; objword.UserName&lt;br&gt;
MsgBox &lt;span class=&quot;st0&quot;&gt;&quot;Initials: &quot;&lt;/span&gt; &amp; objword.UserInitials&lt;br&gt;
objword.Quit&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;(Dick, could you check if my previous posts are in your spam bin?  Thanks!)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hans &#8211; no problem&#8230;</p>
<p>Trying to post my code again:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Dim</span> objword <span class="kw1">As</span> <span class="kw1">Object</span><br />
<span class="kw1">Set</span> objword = CreateObject(<span class="st0">&#8220;Word.Application&#8221;</span>)<br />
MsgBox <span class="st0">&#8220;Name: &#8220;</span> &amp;amp; objword.UserName<br />
MsgBox <span class="st0">&#8220;Initials: &#8220;</span> &amp;amp; objword.UserInitials<br />
objword.Quit</div>
</div>
<p>(Dick, could you check if my previous posts are in your spam bin?  Thanks!)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Schraven</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34597</link>
		<dc:creator>Hans Schraven</dc:creator>
		<pubDate>Mon, 01 Sep 2008 15:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34597</guid>
		<description>&lt;p&gt;@Simon, sorry to &#039;overwrite&#039; you.&lt;br&gt;
The nice thing about Word is that does your work: for instance&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; c0 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; CreateObject(&lt;span class=&quot;st0&quot;&gt;&quot;Word.Application&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; .username=&lt;span class=&quot;st0&quot;&gt;&quot;Simon Herbert&quot;&lt;/span&gt;&lt;br&gt;
&#160; &#160; c0 = UCase(.userinitials)&lt;br&gt;
&#160; &#160; .Quit&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>@Simon, sorry to &#8216;overwrite&#8217; you.<br />
The nice thing about Word is that does your work: for instance</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Dim</span> c0 <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; <span class="kw1">With</span> CreateObject(<span class="st0">&#8220;Word.Application&#8221;</span>)<br />
&nbsp; &nbsp; .username=<span class="st0">&#8220;Simon Herbert&#8221;</span><br />
&nbsp; &nbsp; c0 = UCase(.userinitials)<br />
&nbsp; &nbsp; .Quit<br />
&nbsp; <span class="kw1">End</span> <span class="kw1">With</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Simon Herbert</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34594</link>
		<dc:creator>Simon Herbert</dc:creator>
		<pubDate>Mon, 01 Sep 2008 12:17:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34594</guid>
		<description>&lt;p&gt;Hans, I posted codes similar to that last week but my comments are not shown (probably in the spam folder due to including a link for further details)...&lt;/p&gt;
&lt;p&gt;Word and Visio seem to be the only 2003 apps that have complete access to (application) User Name and Initials.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hans, I posted codes similar to that last week but my comments are not shown (probably in the spam folder due to including a link for further details)&#8230;</p>
<p>Word and Visio seem to be the only 2003 apps that have complete access to (application) User Name and Initials.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Hans Schraven</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34592</link>
		<dc:creator>Hans Schraven</dc:creator>
		<pubDate>Mon, 01 Sep 2008 11:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34592</guid>
		<description>&lt;p&gt;Word can&#039;t do without userinitials.&lt;br&gt;
When my username in Word is Hans Schraven it automatically creates my initials: HS.&lt;br&gt;
If I empty my username (options), Word automatically takes the computername as username and creates the initials accordingly.&lt;br&gt;
To retrieve the userinitals in Excel:&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&#160; &lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; c0 &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt; CreateObject(&lt;span class=&quot;st0&quot;&gt;&quot;Word.Application&quot;&lt;/span&gt;)&lt;br&gt;
&#160; &#160; c0 = UCase(.userinitials)&lt;br&gt;
&#160; &#160; .Quit&lt;br&gt;
&#160; &lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;With&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Word can&#8217;t do without userinitials.<br />
When my username in Word is Hans Schraven it automatically creates my initials: HS.<br />
If I empty my username (options), Word automatically takes the computername as username and creates the initials accordingly.<br />
To retrieve the userinitals in Excel:</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer">&nbsp; <span class="kw1">Dim</span> c0 <span class="kw1">As</span> <span class="kw1">String</span><br />
&nbsp; <span class="kw1">With</span> CreateObject(<span class="st0">&#8220;Word.Application&#8221;</span>)<br />
&nbsp; &nbsp; c0 = UCase(.userinitials)<br />
&nbsp; &nbsp; .Quit<br />
&nbsp; <span class="kw1">End</span> <span class="kw1">With</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: fzz</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34544</link>
		<dc:creator>fzz</dc:creator>
		<pubDate>Fri, 29 Aug 2008 21:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34544</guid>
		<description>&lt;p&gt;Security. It&#039;d be nice if Windows could provide it.&lt;/p&gt;
&lt;p&gt;Unless organizations&#039; IT departments are sophisticated enough to use alternative credentials for logon scripts when users log on, or just don&#039;t use logon scripts, there&#039;s some scripting engine somewhere on users&#039; systems which users can run. Maybe in a fully locked down environment users can only run .EXEs under Program Files and a few .EXEs under Windows or WinNT. In such circumstances, API calls may be all there is, but that begs the question whether greater security is achieved forcing users to make API calls rather than providing an easier to use scripting facility like WSH.&lt;/p&gt;
&lt;p&gt;This also raises the question whether, from a security perspective, it&#039;s a good thing VBA can make API calls. And if Microsoft adds a security feature to disable API calls in some future VBA version or successor scripting facility, then what?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Security. It&#8217;d be nice if Windows could provide it.</p>
<p>Unless organizations&#8217; IT departments are sophisticated enough to use alternative credentials for logon scripts when users log on, or just don&#8217;t use logon scripts, there&#8217;s some scripting engine somewhere on users&#8217; systems which users can run. Maybe in a fully locked down environment users can only run .EXEs under Program Files and a few .EXEs under Windows or WinNT. In such circumstances, API calls may be all there is, but that begs the question whether greater security is achieved forcing users to make API calls rather than providing an easier to use scripting facility like WSH.</p>
<p>This also raises the question whether, from a security perspective, it&#8217;s a good thing VBA can make API calls. And if Microsoft adds a security feature to disable API calls in some future VBA version or successor scripting facility, then what?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John Walkenbach</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34543</link>
		<dc:creator>John Walkenbach</dc:creator>
		<pubDate>Fri, 29 Aug 2008 20:59:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34543</guid>
		<description>&lt;p&gt;I did not know about that method to read the registry. Much simpler than API calls.&lt;/p&gt;
&lt;p&gt;Isn&#039;t it true that Windows Scripting Host is often disabled for security reasons?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I did not know about that method to read the registry. Much simpler than API calls.</p>
<p>Isn&#8217;t it true that Windows Scripting Host is often disabled for security reasons?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34542</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Fri, 29 Aug 2008 20:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34542</guid>
		<description>&lt;p&gt;So many ways to get the logged user name.  For years, I&#039;ve used API calls to do this.  Dermot and Fzz both demonstrate ways that are much simpler than my old way of doing this.  &lt;/p&gt;
&lt;p&gt;Any thoughts on which method may be the most efficient/effective?&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>So many ways to get the logged user name.  For years, I&#8217;ve used API calls to do this.  Dermot and Fzz both demonstrate ways that are much simpler than my old way of doing this.  </p>
<p>Any thoughts on which method may be the most efficient/effective?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34541</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Fri, 29 Aug 2008 19:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34541</guid>
		<description>&lt;p&gt;Not too happy about the way the code shows here.  Hopefully this is cleaner&gt;&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt; GetLoggedUser()&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; myWS &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Object&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; strUser &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; myWS = CreateObject(&lt;span class=&quot;st0&quot;&gt;&quot;WScript.Shell&quot;&lt;/span&gt;)&lt;br&gt;
&lt;br&gt;
strUser = myWS.RegRead _&lt;br&gt;
&#160; &#160; (&lt;span class=&quot;st0&quot;&gt;&quot;HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerLogon User Name&quot;&lt;/span&gt;)&lt;br&gt;
&lt;br&gt;
MsgBox strUser&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Not too happy about the way the code shows here.  Hopefully this is cleaner&gt;</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Function</span> GetLoggedUser()</p>
<p><span class="kw1">Dim</span> myWS <span class="kw1">As</span> <span class="kw1">Object</span><br />
<span class="kw1">Dim</span> strUser <span class="kw1">As</span> <span class="kw1">String</span></p>
<p><span class="kw1">Set</span> myWS = CreateObject(<span class="st0">&#8220;WScript.Shell&#8221;</span>)</p>
<p>strUser = myWS.RegRead _<br />
&nbsp; &nbsp; (<span class="st0">&#8220;HKCUSoftwareMicrosoftWindowsCurrentVersionExplorerLogon User Name&#8221;</span>)</p>
<p>MsgBox strUser</p>
<p><span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Alexander</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/08/28/user-initials-in-excel/#comment-34540</link>
		<dc:creator>Mike Alexander</dc:creator>
		<pubDate>Fri, 29 Aug 2008 19:54:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1889#comment-34540</guid>
		<description>&lt;p&gt;Thanks for the registry tip Fzz:&lt;br&gt;
This is much better easier that the Windows API route.&lt;/p&gt;
&lt;div style=&quot;overflow: auto; white-space: nowrap;&quot; class=&quot;codecolorer-container vb default&quot;&gt;&lt;div style=&quot;white-space: nowrap;&quot; class=&quot;vb codecolorer&quot;&gt;&lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt; GetLoggedUser()&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; myWS &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Object&lt;/span&gt;&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Dim&lt;/span&gt; strUser &lt;span class=&quot;kw1&quot;&gt;As&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;String&lt;/span&gt;&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;Set&lt;/span&gt; myWS = CreateObject(&lt;span class=&quot;st0&quot;&gt;&quot;WScript.Shell&quot;&lt;/span&gt;)&lt;br&gt;
&lt;br&gt;
strUser = myWS.RegRead _&lt;br&gt;
&#160; &#160; (&lt;span class=&quot;st0&quot;&gt;&quot;HKCUSoftwareMicrosoftWindows&quot;&lt;/span&gt; &amp; _&lt;br&gt;
&#160; &#160; &lt;span class=&quot;st0&quot;&gt;&quot;CurrentVersionExplorerLogon User Name&quot;&lt;/span&gt;)&lt;br&gt;
&lt;br&gt;
&lt;span class=&quot;kw1&quot;&gt;End&lt;/span&gt; &lt;span class=&quot;kw1&quot;&gt;Function&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;
</description>
		<content:encoded><![CDATA[<p>Thanks for the registry tip Fzz:<br />
This is much better easier that the Windows API route.</p>
<div style="overflow: auto; white-space: nowrap;" class="codecolorer-container vb default">
<div style="white-space: nowrap;" class="vb codecolorer"><span class="kw1">Function</span> GetLoggedUser()</p>
<p><span class="kw1">Dim</span> myWS <span class="kw1">As</span> <span class="kw1">Object</span><br />
<span class="kw1">Dim</span> strUser <span class="kw1">As</span> <span class="kw1">String</span></p>
<p><span class="kw1">Set</span> myWS = CreateObject(<span class="st0">&#8220;WScript.Shell&#8221;</span>)</p>
<p>strUser = myWS.RegRead _<br />
&nbsp; &nbsp; (<span class="st0">&#8220;HKCUSoftwareMicrosoftWindows&#8221;</span> &amp;amp; _<br />
&nbsp; &nbsp; <span class="st0">&#8220;CurrentVersionExplorerLogon User Name&#8221;</span>)</p>
<p><span class="kw1">End</span> <span class="kw1">Function</span></div>
</div>
]]></content:encoded>
	</item>
</channel>
</rss>

