#1   Report Post  
Niccalo
 
Posts: n/a
Default Hyperlinking


Here is the formula I am using

=IF(A1="","",VLOOKUP(A1,B:D,3,FALSE))

Column 3 is a list of names, and each of them is set up as a hyperlink
to open to various file locations. Using the above formula I can get
the folder name to show, but it removes the formating for the hyperlink
location. Is there anyway to fix this?


--
Niccalo
------------------------------------------------------------------------
Niccalo's Profile: http://www.excelforum.com/member.php...fo&userid=4344
View this thread: http://www.excelforum.com/showthread...hreadid=375191

  #2   Report Post  
mangesh_yadav
 
Posts: n/a
Default


The cells are hyperlinked and not the text in your table. Probably you
will have to write a macro to change the link at run-time.

Also, you would need to save the link information in another column for
this purpose.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375191

  #3   Report Post  
mangesh_yadav
 
Posts: n/a
Default


Example:

You have the following table in range A1:C3
1 Bk1 C:\Book1.xls
2 Bk2 C:\Book2.xls
3 Bk3 C:\Book3.xls

In A10, you enter a number from 1 to 3
In B10, your formula:
=VLOOKUP(A10,A1:C3,2)

The following code should be entered in the module for the above sheet.
This will add the link to you cell B10

Private Sub Worksheet_Change(ByVal Target As Range)
if Target.Address = "$A$10" then
Range("B10").Select
ActiveSheet.Hyperlinks.Add Anchor:=Selection,
Address:=WorksheetFunction.VLookup(Range("A10"), Range("A1:C3"), 3)
end if
End Sub


Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375191

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
Hyperlinking when it shouldn't... B.C.Lioness Excel Worksheet Functions 0 May 17th 05 07:15 PM
Automated Hyperlinking Brooks W. Excel Worksheet Functions 0 April 21st 05 03:50 PM
Hyperlinking Excel on Intranet Jackie Excel Discussion (Misc queries) 0 March 31st 05 05:22 PM
Hyperlinking footnotes - urgent question marika1981 Excel Discussion (Misc queries) 1 January 5th 05 06:35 PM


All times are GMT +1. The time now is 04:34 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"