+ Reply to Thread
Results 1 to 3 of 3

Hyperlinking

  1. #1
    Registered User
    Join Date
    12-30-2003
    Posts
    3

    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?

  2. #2
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    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
    Last edited by mangesh_yadav; 05-31-2005 at 06:59 AM.

  3. #3
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1