<?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: Variable Hyperlinks</title>
	<atom:link href="http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/</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: Dave</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-37616</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Fri, 30 Jan 2009 17:58:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-37616</guid>
		<description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;Here is a solution to your problem.... Make the first entry in the hyperlink function a cell reference! Then you can use your own functions to write the url into the referenced cell. Here is an example:&lt;/p&gt;
&lt;p&gt;CELL A1: =hyperlink(D1, &quot;click here&quot;)&lt;br&gt;
CELL D1: &lt;a href=&quot;http://www.ibm.com&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Clicking on cell A1 launches the browser to the IBM home page!&lt;/p&gt;
&lt;p&gt;Note no quotes in cell D1 and the &quot;http://&quot; is required. &lt;/p&gt;
&lt;p&gt;This also works for things like PDF files when the value in D1 is &quot;c:	emp	est.pdf&quot;. Again no quotes. When you click the link the PDF is opened.&lt;/p&gt;
&lt;p&gt;Of course D1 could be in another workbook, etc.&lt;/p&gt;
&lt;p&gt;You can even have the description be a cell reference! So things like&lt;br&gt;
CELL A1: =hyperlink(B1, C1)&lt;br&gt;
CELL B1: &lt;a href=&quot;http://www.ibm.com&quot; rel=&quot;nofollow&quot;&gt;http://www.ibm.com&lt;/a&gt;&lt;br&gt;
CELL C1: IBM&lt;/p&gt;
&lt;p&gt;Shows IBM in cell A1 and launches the browser to the IBM home page. &lt;/p&gt;
&lt;p&gt;By using cell references you can use you own functions to build the values.&lt;/p&gt;
&lt;p&gt;This was tested on Excel 2002.&lt;/p&gt;
&lt;p&gt;Dave&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Hi!</p>
<p>Here is a solution to your problem&#8230;. Make the first entry in the hyperlink function a cell reference! Then you can use your own functions to write the url into the referenced cell. Here is an example:</p>
<p>CELL A1: =hyperlink(D1, &#8220;click here&#8221;)<br />
CELL D1: <a href="http://www.ibm.com" rel="nofollow">http://www.ibm.com</a></p>
<p>Clicking on cell A1 launches the browser to the IBM home page!</p>
<p>Note no quotes in cell D1 and the &#8220;http://&#8221; is required. </p>
<p>This also works for things like PDF files when the value in D1 is &#8220;c:	emp	est.pdf&#8221;. Again no quotes. When you click the link the PDF is opened.</p>
<p>Of course D1 could be in another workbook, etc.</p>
<p>You can even have the description be a cell reference! So things like<br />
CELL A1: =hyperlink(B1, C1)<br />
CELL B1: <a href="http://www.ibm.com" rel="nofollow">http://www.ibm.com</a><br />
CELL C1: IBM</p>
<p>Shows IBM in cell A1 and launches the browser to the IBM home page. </p>
<p>By using cell references you can use you own functions to build the values.</p>
<p>This was tested on Excel 2002.</p>
<p>Dave</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dick Kusleika</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-32848</link>
		<dc:creator>Dick Kusleika</dc:creator>
		<pubDate>Fri, 13 Jun 2008 19:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-32848</guid>
		<description>&lt;p&gt;&quot;Can&#039;t the UDF use the Environ() function&quot; - Not unless I can customize the environment variables table.  Mine are custom environment variables, not built-in ones.&lt;/p&gt;
&lt;p&gt;&quot;and name each of the cells&quot;  - My thinking was that I want to add and subtract variables from the list.  I would have to add and subtract names too.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>&#8220;Can&#8217;t the UDF use the Environ() function&#8221; &#8211; Not unless I can customize the environment variables table.  Mine are custom environment variables, not built-in ones.</p>
<p>&#8220;and name each of the cells&#8221;  &#8211; My thinking was that I want to add and subtract variables from the list.  I would have to add and subtract names too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tushar Mehta</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-32831</link>
		<dc:creator>Tushar Mehta</dc:creator>
		<pubDate>Fri, 13 Jun 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-32831</guid>
		<description>&lt;p&gt;Dick:  Nice idea.  A couple of comments.  I suspect you&#039;ve considered them and I&#039;m curious as to why you rejected them.&lt;/p&gt;
&lt;p&gt;In the UDF version, why pass the ENVIRON variables to it?  Can&#039;t the UDF use the Environ() function to get the same information?&lt;/p&gt;
&lt;p&gt;In the worksheet version, you could simplify the formula with named formulas that are the 2 VLOOKUPs you use.  Or you could skip the VLOOKUPs and name each of the cells containing the appropriate environment variables.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Dick:  Nice idea.  A couple of comments.  I suspect you&#8217;ve considered them and I&#8217;m curious as to why you rejected them.</p>
<p>In the UDF version, why pass the ENVIRON variables to it?  Can&#8217;t the UDF use the Environ() function to get the same information?</p>
<p>In the worksheet version, you could simplify the formula with named formulas that are the 2 VLOOKUPs you use.  Or you could skip the VLOOKUPs and name each of the cells containing the appropriate environment variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-32699</link>
		<dc:creator>Rob</dc:creator>
		<pubDate>Thu, 05 Jun 2008 13:21:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-32699</guid>
		<description>&lt;p&gt;First off, i&#039;m not sure where the problem with the tooltip comes - doesn&#039;t excel create the link and use it&#039;s standard hyperlink tooltip - &quot;url - click here to follow... etc&quot;?  And the formatting thing to me would be a big issue.  &lt;/p&gt;
&lt;p&gt;i think option 2 is good.  You could even just parse out a standard syntax url:&lt;/p&gt;
&lt;p&gt;=HYPERLINK(parselink(&quot;//%MainServer%/%docs%/UserGuide.pdf&quot;))&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>First off, i&#8217;m not sure where the problem with the tooltip comes &#8211; doesn&#8217;t excel create the link and use it&#8217;s standard hyperlink tooltip &#8211; &#8220;url &#8211; click here to follow&#8230; etc&#8221;?  And the formatting thing to me would be a big issue.  </p>
<p>i think option 2 is good.  You could even just parse out a standard syntax url:</p>
<p>=HYPERLINK(parselink(&#8220;//%MainServer%/%docs%/UserGuide.pdf&#8221;))</p>
<p>Rob</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dermot</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-32690</link>
		<dc:creator>dermot</dc:creator>
		<pubDate>Thu, 05 Jun 2008 02:19:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-32690</guid>
		<description>&lt;p&gt;I think there are a couple of options here. First, you could fake cells to look like hyperlinks and trap the cell click (you would need a way of deciding which cells had hyperlinks, and which hyperlink applied, eg via a lookup table or range name). The simplest might be to set up a real hyperlink that did nothing, and trap the hyperlink event, but I haven&#039;t managed to create a hyperlink that will stay in the same cell when clicked.&lt;/p&gt;
&lt;p&gt;To make it easy for users, you could possibly write code that sets up a (dynamic) hyperlink when they doubleclick on a cell. It would simply ask them for the location of the cell containing the formula for the hyperlink, and the code would manage the rest.&lt;/p&gt;
&lt;p&gt;Second, you could use objects. I&#039;ve often used transparent text boxes with code behind them. Of course, that&#039;s a bit harder for users.&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>I think there are a couple of options here. First, you could fake cells to look like hyperlinks and trap the cell click (you would need a way of deciding which cells had hyperlinks, and which hyperlink applied, eg via a lookup table or range name). The simplest might be to set up a real hyperlink that did nothing, and trap the hyperlink event, but I haven&#8217;t managed to create a hyperlink that will stay in the same cell when clicked.</p>
<p>To make it easy for users, you could possibly write code that sets up a (dynamic) hyperlink when they doubleclick on a cell. It would simply ask them for the location of the cell containing the formula for the hyperlink, and the code would manage the rest.</p>
<p>Second, you could use objects. I&#8217;ve often used transparent text boxes with code behind them. Of course, that&#8217;s a bit harder for users.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ola</title>
		<link>http://www.dailydoseofexcel.com/archives/2008/06/04/variable-hyperlinks/#comment-32681</link>
		<dc:creator>Ola</dc:creator>
		<pubDate>Wed, 04 Jun 2008 21:45:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.dailydoseofexcel.com/?p=1849#comment-32681</guid>
		<description>&lt;p&gt;Google has a brilliant solution.&lt;br&gt;
Here is an example: &lt;a href=&quot;http://groups.google.se/group/gapminderworld/browse_thread/thread/d69fb8c6a48081fe&quot; rel=&quot;nofollow&quot;&gt;http://groups.google.se/group/gapminderworld/browse_thread/thread/d69fb8c6a48081fe&lt;/a&gt;&lt;/p&gt;
</description>
		<content:encoded><![CDATA[<p>Google has a brilliant solution.<br />
Here is an example: <a href="http://groups.google.se/group/gapminderworld/browse_thread/thread/d69fb8c6a48081fe" rel="nofollow">http://groups.google.se/group/gapminderworld/browse_thread/thread/d69fb8c6a48081fe</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>

