<?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: Codename to Friendly Name</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/</link>
	<description>Daily posts of Excel tips…and other stuff</description>
	<lastBuildDate>Thu, 09 Feb 2012 23:42:03 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Ammar</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-62040</link>
		<dc:creator>Ammar</dc:creator>
		<pubDate>Tue, 12 Apr 2011 09:52:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-62040</guid>
		<description>&lt;p&gt;I have been searching for this &quot;hyperlink with in one workbook&quot; and every time i find the same solution as mentioned by Mr. Brad Yundt (And if the link is within the same workbook, then the formula is:&lt;br&gt;
=HYPERLINK(CELL(&quot;address&quot;,Sheet2!$A$1),&quot;Friendly name for my link&quot; )&lt;br&gt;
my problem is, this hyperlink does not work (i.e when i click it, it does not direct me to desired sheet it gives me this error message &quot;Cannot open the Specified file&quot;)...&lt;br&gt;
I can apply hyperlink by using right click and it works perfectly, but then I have to repeat the process 288 times to link all the sheets (so thats not perfect either)..&lt;br&gt;
I need to make an index of all my sheets so that I can go to any of those by clicking the specified hyperlink.&lt;br&gt;
please help me with this.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I have been searching for this &#8220;hyperlink with in one workbook&#8221; and every time i find the same solution as mentioned by Mr. Brad Yundt (And if the link is within the same workbook, then the formula is:<br />
=HYPERLINK(CELL(&#8220;address&#8221;,Sheet2!$A$1),&#8221;Friendly name for my link&#8221; )<br />
my problem is, this hyperlink does not work (i.e when i click it, it does not direct me to desired sheet it gives me this error message &#8220;Cannot open the Specified file&#8221;)&#8230;<br />
I can apply hyperlink by using right click and it works perfectly, but then I have to repeat the process 288 times to link all the sheets (so thats not perfect either)..<br />
I need to make an index of all my sheets so that I can go to any of those by clicking the specified hyperlink.<br />
please help me with this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brad Yundt</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-15778</link>
		<dc:creator>Brad Yundt</dc:creator>
		<pubDate>Thu, 25 Aug 2005 05:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-15778</guid>
		<description>&lt;p&gt;Rather than fuss with the code name of the sheet to make the link work even if the user changes the sheet name, consider using a HYPERLINK function together with CELL:&lt;br&gt;
=HYPERLINK(&quot;[C:some foldermyFile.xls]&quot; &amp; CELL(&quot;address&quot;,Sheet2!$A$1),&quot;Friendly name for my link&quot;)&lt;/p&gt;
&lt;p&gt;If the file hasn&#039;t been saved yet, then the formula would be:&lt;br&gt;
=HYPERLINK(&quot;[myFile.xls]&quot; &amp; CELL(&quot;address&quot;,Sheet2!$A$1),&quot;Friendly name for my link&quot;)&lt;/p&gt;
&lt;p&gt;And if the link is within the same workbook, then the formula is:&lt;br&gt;
=HYPERLINK(CELL(&quot;address&quot;,Sheet2!$A$1),&quot;Friendly name for my link&quot;)&lt;/p&gt;
&lt;p&gt;A macro to create this kind of formula is here: &lt;a href=&quot;http://vbaexpress.com/kb/getarticle.php?kb_id=237&quot; rel=&quot;nofollow&quot;&gt;http://vbaexpress.com/kb/getarticle.php?kb_id=237&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Rather than fuss with the code name of the sheet to make the link work even if the user changes the sheet name, consider using a HYPERLINK function together with CELL:<br />
=HYPERLINK(&#8220;[C:some foldermyFile.xls]&#8221; &amp; CELL(&#8220;address&#8221;,Sheet2!$A$1),&#8221;Friendly name for my link&#8221;)</p>
<p>If the file hasn&#8217;t been saved yet, then the formula would be:<br />
=HYPERLINK(&#8220;[myFile.xls]&#8221; &amp; CELL(&#8220;address&#8221;,Sheet2!$A$1),&#8221;Friendly name for my link&#8221;)</p>
<p>And if the link is within the same workbook, then the formula is:<br />
=HYPERLINK(CELL(&#8220;address&#8221;,Sheet2!$A$1),&#8221;Friendly name for my link&#8221;)</p>
<p>A macro to create this kind of formula is here: <a href="http://vbaexpress.com/kb/getarticle.php?kb_id=237" rel="nofollow">http://vbaexpress.com/kb/getarticle.php?kb_id=237</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-15764</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Mon, 22 Aug 2005 09:38:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-15764</guid>
		<description>&lt;p&gt;Include the following code in the ThisWorkbook class-file of a Workbook&lt;/p&gt;
&lt;p&gt;The function returns the worksheet for a certain codename.&lt;/p&gt;
&lt;p&gt;Public Function WorkSheetsByCodeName(ByVal CodeNameStr As String) As Worksheet&lt;br&gt;
On Error Resume Next&lt;/p&gt;
&lt;p&gt;Set WorkSheetsByCodeName = Nothing&lt;/p&gt;
&lt;p&gt;If Len(CodeNameStr) = 0 Then Exit Function&lt;/p&gt;
&lt;p&gt;    Dim Wsh As Worksheet&lt;/p&gt;
&lt;p&gt;    For Each Wsh In ThisWorkbook.Worksheets&lt;br&gt;
        If StrComp(Wsh.CodeName, CodeNameStr, vbTextCompare) = 0 Then&lt;br&gt;
            Set WorkSheetsByCodeName = Wsh&lt;br&gt;
            Exit For&lt;br&gt;
        End If&lt;br&gt;
    Next Wsh&lt;br&gt;
    Set Wsh = Nothing&lt;br&gt;
    Err.Clear&lt;br&gt;
End Function&lt;/p&gt;
&lt;p&gt;The WorkSheetsByCodeName-function is used in a similar way the WorkSheets-function is used.&lt;/p&gt;
&lt;p&gt;ThisWorkbook.WorkSheets(&quot;RapportSheet&quot;).Activate&lt;/p&gt;
&lt;p&gt;becomes&lt;/p&gt;
&lt;p&gt;ThisWorkbook.WorkSheetsByCodeName(&quot;RapportSheet&quot;).Activate&lt;/p&gt;
&lt;p&gt;Easy and nice looking code, isn&#039;t it?&lt;/p&gt;
&lt;p&gt;Johan&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Include the following code in the ThisWorkbook class-file of a Workbook</p>
<p>The function returns the worksheet for a certain codename.</p>
<p>Public Function WorkSheetsByCodeName(ByVal CodeNameStr As String) As Worksheet<br />
On Error Resume Next</p>
<p>Set WorkSheetsByCodeName = Nothing</p>
<p>If Len(CodeNameStr) = 0 Then Exit Function</p>
<p>    Dim Wsh As Worksheet</p>
<p>    For Each Wsh In ThisWorkbook.Worksheets<br />
        If StrComp(Wsh.CodeName, CodeNameStr, vbTextCompare) = 0 Then<br />
            Set WorkSheetsByCodeName = Wsh<br />
            Exit For<br />
        End If<br />
    Next Wsh<br />
    Set Wsh = Nothing<br />
    Err.Clear<br />
End Function</p>
<p>The WorkSheetsByCodeName-function is used in a similar way the WorkSheets-function is used.</p>
<p>ThisWorkbook.WorkSheets(&#8220;RapportSheet&#8221;).Activate</p>
<p>becomes</p>
<p>ThisWorkbook.WorkSheetsByCodeName(&#8220;RapportSheet&#8221;).Activate</p>
<p>Easy and nice looking code, isn&#8217;t it?</p>
<p>Johan</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Johan</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-15763</link>
		<dc:creator>Johan</dc:creator>
		<pubDate>Mon, 22 Aug 2005 09:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-15763</guid>
		<description>&lt;p&gt;Include the following code in the ThisWorkbook class-file of a Workbook&lt;/p&gt;
&lt;p&gt;The function returns the worksheet for a certain codename.&lt;/p&gt;
&lt;p&gt;Public Function WorkSheetsByCodeName(ByVal CodeNameStr As String) As Worksheet&lt;br&gt;
On Error Resume Next&lt;/p&gt;
&lt;p&gt;    Set WorkSheetsByCodeName = Nothing&lt;/p&gt;
&lt;p&gt;    If Len(CodeNameStr)&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Include the following code in the ThisWorkbook class-file of a Workbook</p>
<p>The function returns the worksheet for a certain codename.</p>
<p>Public Function WorkSheetsByCodeName(ByVal CodeNameStr As String) As Worksheet<br />
On Error Resume Next</p>
<p>    Set WorkSheetsByCodeName = Nothing</p>
<p>    If Len(CodeNameStr)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-15738</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Wed, 17 Aug 2005 13:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-15738</guid>
		<description>&lt;p&gt;Trusted Projects!  That&#039;s what I was missing.  Even with a lot of sheets, I&#039;ll bet your function doesn&#039;t take very long.  Thanks.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Trusted Projects!  That&#8217;s what I was missing.  Even with a lot of sheets, I&#8217;ll bet your function doesn&#8217;t take very long.  Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Bovey</title>
		<link>http://www.dailydoseofexcel.com/archives/2005/08/16/codename-to-friendly-name/#comment-15735</link>
		<dc:creator>Rob Bovey</dc:creator>
		<pubDate>Wed, 17 Aug 2005 11:37:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1216#comment-15735</guid>
		<description>&lt;p&gt;This is the shortest solution to the problem but it will bomb on any copy of Excel 2002 or higher where access to the VBProject has not been trusted under the Tools/Macro/Security/Trusted Sources menu.&lt;/p&gt;
&lt;p&gt;Since this is the default you&#039;re pretty likely to run into it. Here&#039;s a project protection safe version that I use in my code:&lt;/p&gt;
&lt;p&gt;Public Function szSheetTabName( _&lt;br&gt;
        ByRef wkbProject As Excel.Workbook, _&lt;br&gt;
        ByRef szCodeName As String) As String&lt;br&gt;
    Dim wksSheet As Excel.Worksheet&lt;br&gt;
    For Each wksSheet In wkbProject.Worksheets&lt;br&gt;
        If wksSheet.CodeName = szCodeName Then&lt;br&gt;
            szSheetTabName = wksSheet.Name&lt;br&gt;
            Exit For&lt;br&gt;
        End If&lt;br&gt;
    Next wksSheet&lt;br&gt;
End Function&lt;/p&gt;
&lt;p&gt;&lt;br&gt;
Rob Bovey&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>This is the shortest solution to the problem but it will bomb on any copy of Excel 2002 or higher where access to the VBProject has not been trusted under the Tools/Macro/Security/Trusted Sources menu.</p>
<p>Since this is the default you&#8217;re pretty likely to run into it. Here&#8217;s a project protection safe version that I use in my code:</p>
<p>Public Function szSheetTabName( _<br />
        ByRef wkbProject As Excel.Workbook, _<br />
        ByRef szCodeName As String) As String<br />
    Dim wksSheet As Excel.Worksheet<br />
    For Each wksSheet In wkbProject.Worksheets<br />
        If wksSheet.CodeName = szCodeName Then<br />
            szSheetTabName = wksSheet.Name<br />
            Exit For<br />
        End If<br />
    Next wksSheet<br />
End Function</p>
<p><br />
Rob Bovey</p>
]]></content:encoded>
	</item>
</channel>
</rss>

