+ Reply to Thread
Results 1 to 14 of 14

how to create list of selections that individually link to other files or workbooks

  1. #1
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    how to create list of selections that individually link to other files or workbooks

    I need to create a database that links to other workbooks or files? For example:
    I have a list of named projects with a few detail fields in the highest level.
    When I click on a project name, I'd like a list to appear.
    When I choose from the list, I want to be taken to the associated file or different workbook that has tabs with more detail on each project.

    For example at the highest level:
    A1: Project Name--A2: beginning date--A3: ending date--A4: status notes
    Each project name linking to associated file/workbook in a dropdown list:
    Project details
    Funder profile
    Funding type
    Program Division
    Project Lead

    Can someone tell me how to do this?

  2. #2
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: how to create list of selections that individually link to other files or workbooks

    A place to start might be with Hyperlinks

  3. #3
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    Thanks! Do you know if hyperlinks be used in a list box?

  4. #4
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    Is this what you are trying to achieve - see attached workbook

    This formula in cell A6
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    See Table F13 for the item I tested on my PC

    Table should contain full path for all files.

    But if all the files are in one place, then table could just include File Name (incl extension) and the formula amended thus:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    HyperlinkLinkToFiles.jpg
    Attached Files Attached Files
    Last edited by kev_; 03-23-2017 at 07:56 AM.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

  5. #5
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    Very close. Thanks. When clicking on a selection in the dropdown list (A4), can it go directly there instead of having to click on the file that gets inserted in A6?

  6. #6
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    This does it via a simple macro based on changing value in A6
    Open the file, put in some valid file paths and then amend the values in A2 and A4

    I will try to achieve it without a macro tomorrow and update the thread after that.



    As written it should trigger whenever the value in cell A6 changes (ie if A2 or A4 change)- you could amendA6 to A4 or even A2 if you prefer
    To amend the macro right-click on sheet tab "SelectHere" and select "View Code"
    Please Login or Register  to view this content.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    Hi kev_ . First wanted to say THANKS for your help! I'm learning a lot.
    I don't see my last repy here, but was asking how to upload a file here? I wanted to show you what Ive done.

  8. #8
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    You are welcome

    To upload a file:
    Click on REPLY, then GO ADVANCED , then look below for MANAGE ATTACHMENTS

    ManageAttachments3.jpg

  9. #9
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    Hope my attachments(2) came through.

    So I'm wondering if the dropbox selections can link to the Sheets I've added to the initial spreadsheet (which I will Hide), or if they have to be linked to individual files per project.
    For example, if user selects Project_005 from A2 then Project Details from A4, can they go straight to the ProjectDetails sheet, A7? I added this location to Tables: B6, but don't know if this is how to go about it?

    This type of linking seems much more simplistic and will eliminate so many files in Table sheet, but I don't even know if it's possible to make the Hyperlink do this?

    All the other dropbox selections can be associated with the other simple sheets I added, except for Funder Profile which will need to link to a separate workbook which I've attached. Each Project should be associated with one of the Funders on the individual sheets in that workbook.
    I added that location to C6 for Project 5 in the Table sheet. Again, hoping you can tell me if this will work.

    I hope I haven't confused. Let me know if you have questions. Your assistance with this project has relieved a lot of stress!

  10. #10
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    I will look at this for you later today

  11. #11
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    I appreciate it!

  12. #12
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    If not confused, I may be a little uncertain as to what you want! I suspect you may need a "mix and match" of what is now included in the file.

    If this does not give you what you want, then please attach a clean file that:
    - contains only what you want the end file to look like - including all tabs
    - PLUS a few textboxes on each sheet containing explanations of what should hyperlink to what and which cells are to contain dropdowns selections that drive hyperlinks

    Setting aside (for now) "linking to "Funder Profile" file" , let's focus on exactly what you want the main file to do

    sheet Table is used as our lookup
    - columns D:E have dropdowns with values based on the 3 related sheets
    - column C will contain links to Funder Profile (IGNORE FOR NOW)
    - column B - has a link to Project Details

    sheet SelectHere
    - if "Project Detail" selected in A4, VBA kicks in and takes user to correct Project in sheet "Project Detail"
    - if any other value is selected in A4, then values A2 & A4 are looked up in sheet "Table" and A6 shows the result
    - A6 is now either
    a hyperlink (if A4 = Project Detail)
    OR
    a value looked up in sheet "Table"
    NOTE - A2/A4/A6 combo could also contain a hyperlink to Funder Profile File - IGNORE FOR NOW
    A6 formula:
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    I was confused by the extra lines you added to sheet "SelectHere" - not sure where these fit in to the main file = so added a link to Project Detail on each line. Note use made of helper column H to avoid the cell looking up itself for a value.
    formula in A10 copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Hyperlinks.jpg

    VBA code
    - in this case the VBA does not make use of the hyperlink formula
    - cell reference is derived via lookup
    - then sheet and cell selected
    Please Login or Register  to view this content.
    NOTE 1
    whilst the =HYPERLINK formula works as a link in Excel itself, it will not work as a link with Hyperlinks().Follow function in VBA
    Please Login or Register  to view this content.
    does not work if the link in A6 is derived by formula

    NOTE 2
    A sheet name containing a "space" must be enclosed in single quotation marks ' ' when built into references
    That is not required when the name does not contain space(s)
    Attached Files Attached Files
    Last edited by kev_; 03-29-2017 at 08:43 AM.

  13. #13
    Registered User
    Join Date
    03-23-2017
    Location
    Lubbock, TX
    MS-Off Ver
    MS Office 13
    Posts
    7

    Re: how to create list of selections that individually link to other files or workbooks

    Hello kev. I finally got some clarification and know what I want...a much simpler version (attached). As it turns out I don't need the dropdown list or any linking to Project Type, Division, Lead or Funder Profile. I have removed all. I do need the Project Details sheet so the hyperlinks in A2-A8 make more sense. I didn't see that the 'Table' sheet linked to anything important so deleted that.

    All this needs is:
    1. Can you explain the hyperlink formula components in A2-A8 so I'll understand what it does?
    2. Can you tell me how to make M4 a hyperlink to the URL?

    I will be needing a second database in a month or so. I know it will need to link to a Funder Profile per project. I have to think about what else it needs to do, and will likely be asking for your help again.
    Attached Files Attached Files

  14. #14
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: how to create list of selections that individually link to other files or workbooks

    formula components in A2-A8
    Buiding hyperlinks as a formula means that they are not all having to be created individually (via the cell right click/insert hyperlink method)

    - formula build up
    =HYPERLINK(link address,friendly name)

    the formula we need to get the link to work:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    - working back a step at a time
    "Grant_0001" is in cell H2
    =HYPERLINK("#'Project Details'!A3",H2)

    To find correct cell (=A3) in Project Details:

    we get row number from:
    =MATCH(H2,A:A,0)
    =MATCH("Grant_0001",A:A,0)
    (look for "Grant_0001", in column A ,find exact match)
    That gives the row number = 3

    We want column A (=column 1)

    to convert row 3 and column 1 to A3 we can use =ADDRESS
    =ADDRESS(row,column,how displayed)
    =ADDRESS(3,1,how displayed)
    =ADDRESS(3,1,1)

    and this is how it all joins up
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    [NOTE - if you prefer, you could use the method below and build each hyperlink manually by selecting "Place in this document" instead of "Existing File or Webpage"]

    To create a hyperlink in M4 with the text you want displayed either use the formula method:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    or
    Copy the link to clipboard
    Right click on cell M4 and select "Hyperlink"

    Hyperlink.jpg
    Last edited by kev_; 04-05-2017 at 03:12 AM.

+ 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. Create list based on selections
    By Audelise in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-11-2015, 01:10 PM
  2. How to create a list that dynamically updates based on other selections
    By DAN.DEJONG84 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-18-2015, 04:58 PM
  3. [SOLVED] create new list from drop down list selections
    By rod642 in forum Excel General
    Replies: 6
    Last Post: 10-03-2014, 10:39 AM
  4. Replies: 4
    Last Post: 06-24-2013, 11:16 AM
  5. Multiple selections from a pick list - only unique selections (no repeats) ?
    By opsayo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-24-2011, 06:25 PM
  6. Excel 2007 : Link different workbooks/files
    By garronjude in forum Excel General
    Replies: 0
    Last Post: 10-26-2009, 01:52 PM
  7. Replies: 1
    Last Post: 04-11-2006, 12:30 PM

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