+ Reply to Thread
Results 1 to 4 of 4

Generate file hyperlink based on concatenated Cells.

  1. #1
    Registered User
    Join Date
    12-21-2018
    Location
    Piarco, Trinidad
    MS-Off Ver
    2016
    Posts
    37

    Generate file hyperlink based on concatenated Cells.

    Sorry if I worded the title wrong. Let me explain

    My spread sheet is set up like this

    _____A_______________B_______________C_________________D
    1 File Path________Vendor Name_____Invoice Date_______Invoice Number
    2 =B&C____________MASSY__________1/31/2022__________1234
    3 =B&C__________PIZZA HUT________1/29/2022___________6549

    My excel sheet is in the same folder as pdfs of each invoice and each invoice has the name format "B&C" like MASSY1234.pdf and PIZZA HUT6549.pdf.

    Is it possible to have A2 return the a hyperlinked path for the file so the user can click it and it opens up?

    I know that you can go to manually do it with Insert-->Link and browse for the location but can this be automated?
    Last edited by admat; 05-09-2022 at 03:36 PM.

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,189

    Re: Generate file hyperlink based on concatenated Cells.

    alter as needed:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-21-2018
    Location
    Piarco, Trinidad
    MS-Off Ver
    2016
    Posts
    37

    Re: Generate file hyperlink based on concatenated Cells.

    Perfect!! Thanks

    For the FileExists test, what would be the command to leave the cell blank if the file is not found?

  4. #4
    Valued Forum Contributor
    Join Date
    11-22-2014
    Location
    Arizona, USA
    MS-Off Ver
    Office 365
    Posts
    973

    Re: Generate file hyperlink based on concatenated Cells.

    Just add ELSE and then what you want it to do

    Please Login or Register  to view this content.
    -If you think you are done, Start over - ELeGault

+ 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. [SOLVED] Generate new name of file based on Original file name
    By jimjones1958 in forum Excel General
    Replies: 5
    Last Post: 11-09-2021, 03:46 PM
  2. checking concatenated hyperlink
    By Dizzy50 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-25-2015, 05:04 PM
  3. Generate hyperlink based on cell contents, end when condition met
    By PompadourJay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-10-2014, 03:27 PM
  4. Create macro to generate hyperlink to a specific file from cell
    By Tranen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-08-2012, 12:23 AM
  5. How to display text in a cell with a mailto concatenated hyperlink?
    By JRR007 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2012, 11:18 AM
  6. Macro to auto-generate a hyperlink based on value
    By Biased Historian in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-08-2011, 07:37 PM
  7. change column width based on concatenated cells
    By crimsonkng in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-03-2005, 06:05 PM

Tags for this Thread

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