+ Reply to Thread
Results 1 to 5 of 5

Vba code to add hyperlink to sheet of another workbook

  1. #1
    Registered User
    Join Date
    09-28-2019
    Location
    India
    MS-Off Ver
    MS office 2007
    Posts
    31

    Vba code to add hyperlink to sheet of another workbook

    Hello Everyone,
    I have two database
    ( 1). name it as "Status Database")
    ( 2). name it as "Reference Database")
    Status Database have some reference number in column C.
    and same reference number are there in Reference Database in row 1.

    what i want to achieve is
    when ever an update command is called
    macro should lookup the data in column c of status database and search the same in reference database and give its hyperlink to that particular cell.

    sample file is attached

    I will be very grateful if i get an help on this.
    Thank u in advance.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,246

    Re: Vba code to add hyperlink to sheet of another workbook

    The following macro assumes that the workbook "Reference Database.xlsm" is in the same location.
    Please Login or Register  to view this content.
    Artik

  3. #3
    Registered User
    Join Date
    09-28-2019
    Location
    India
    MS-Off Ver
    MS office 2007
    Posts
    31

    Re: Vba code to add hyperlink to sheet of another workbook

    Hello Artik,
    Thank you for the reply to my query.

    Your code worked perfectly in this sample file.
    but when i use this code in the main files, I get error.

    Main file name is
    1) KwenG Order Gantt Chart
    2) Master Work Order 21-22

    my files are on not server pc.
    Attached Images Attached Images

  4. #4
    Forum Expert
    Join Date
    08-17-2007
    Location
    Poland
    Posts
    2,246

    Re: Vba code to add hyperlink to sheet of another workbook

    If there are other file names or their locations, you should adapt the variable assignments in the main procedure on your own:
    Please Login or Register  to view this content.
    Artik

  5. #5
    Registered User
    Join Date
    09-28-2019
    Location
    India
    MS-Off Ver
    MS office 2007
    Posts
    31

    Re: Vba code to add hyperlink to sheet of another workbook

    Hey Artik,
    Thank you for your time for solving the query
    Your code worked and problem solved.

    Thank u very much

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hyperlink to sheet in same workbook (referring to cell with name of sheet)
    By carlito2002wgn in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2019, 03:41 PM
  2. Replies: 0
    Last Post: 10-27-2015, 08:59 AM
  3. Replies: 0
    Last Post: 10-27-2015, 08:57 AM
  4. [SOLVED] Hyperlink to a Specific Sheet in Another Workbook
    By danaconda84 in forum Excel General
    Replies: 3
    Last Post: 09-17-2013, 03:58 PM
  5. Replies: 2
    Last Post: 01-13-2012, 04:59 PM
  6. Insert Hyperlink to WorkBook in which VBA Code resides
    By ron2k_1 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-04-2011, 10:10 AM
  7. Hyperlink to a sheet contained on another workbook
    By jpruffle in forum Excel General
    Replies: 6
    Last Post: 04-03-2009, 04:57 AM

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