Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating hyperlinks to network files


I am trying to create a macro so that I can click a button and
hyperlink is created, referencing a network location where the locatio
is dependent upon a value in another cell.

So for example, the hyperlink to be created in cell E3 would b
"=hyperlink("G:\General\Blah\Blah\"cell A9"\file.pdf")"

Also, I want the hyperlink text to just say "ABC"

How does this happen

--
akronpo
-----------------------------------------------------------------------
akronpow's Profile: http://www.excelforum.com/member.php...fo&userid=2910
View this thread: http://www.excelforum.com/showthread.php?threadid=48821

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Creating hyperlinks to network files

Maybe...

=hyperlink("g:\general\blah\blah\" & A9 & "\file.pdf", "ABC")

akronpow wrote:

I am trying to create a macro so that I can click a button and a
hyperlink is created, referencing a network location where the location
is dependent upon a value in another cell.

So for example, the hyperlink to be created in cell E3 would be
"=hyperlink("G:\General\Blah\Blah\"cell A9"\file.pdf")"

Also, I want the hyperlink text to just say "ABC"

How does this happen?

--
akronpow
------------------------------------------------------------------------
akronpow's Profile: http://www.excelforum.com/member.php...o&userid=29100
View this thread: http://www.excelforum.com/showthread...hreadid=488213


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Creating hyperlinks to network files


The resulting hyperlink formula is:

=HYPERLINK("G:\Real Estate\Shared\Offline Packages\& D5
&\PCR.PDF","PCR")

and I need the "& D5 &" part to show the result of cell D5.

Here is the code as used:

Range("H9").FormulaR1C1 = _
"=HYPERLINK(""G:\Real Estate\Shared\Offline Packages\& D5
&\PCR.PDF"",""PCR"")"


--
akronpow
------------------------------------------------------------------------
akronpow's Profile: http://www.excelforum.com/member.php...o&userid=29100
View this thread: http://www.excelforum.com/showthread...hreadid=488213

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Creating hyperlinks to network files

Ah, you're populating the cell in code.

You may want to change the D5 to R5C4 since you're using R1C1 reference style
(or just use .formula).

And if you have trouble, you may need to make it look more like:

Range("H9").Formula = _
"=HYPERLINK(""file:////G:/Real Estate/Shared/Offline Packages/""" & _
"&D5&""/PCR.PDF"",""PCR"")"

akronpow wrote:

The resulting hyperlink formula is:

=HYPERLINK("G:\Real Estate\Shared\Offline Packages\& D5
&\PCR.PDF","PCR")

and I need the "& D5 &" part to show the result of cell D5.

Here is the code as used:

Range("H9").FormulaR1C1 = _
"=HYPERLINK(""G:\Real Estate\Shared\Offline Packages\& D5
&\PCR.PDF"",""PCR"")"

--
akronpow
------------------------------------------------------------------------
akronpow's Profile: http://www.excelforum.com/member.php...o&userid=29100
View this thread: http://www.excelforum.com/showthread...hreadid=488213


--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Navigating to Excel files over network slow, but not Word files Newbie123 Excel Discussion (Misc queries) 1 December 2nd 09 01:18 PM
Network Files creating temporary files Dave Weastec Excel Discussion (Misc queries) 0 October 3rd 08 02:26 PM
Hyperlinks to files on network drivers Fornol New Users to Excel 3 February 22nd 06 11:10 PM
Hyperlinks to network files Tommc49 Excel Discussion (Misc queries) 0 June 25th 05 09:59 PM
Copying files ...Network to Network Eric[_6_] Excel Programming 2 July 18th 03 08:59 PM


All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"