+ Reply to Thread
Results 1 to 8 of 8

Batch Hyperlinks To Invoices In Other Folder

  1. #1
    Registered User
    Join Date
    10-21-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Batch Hyperlinks To Invoices In Other Folder

    Hi All
    I have just today subscribed to the forum, I am very rusty on Excel having not used it for quite sometime I did an intermediate course in Excel XP and gained a certificate but that is not helping me much with my Excel 2007. I will be enrolling a new course later but as it is getting very close to tax deadline I would greatly appreciate any help in my exercise. I have in column A of my worksheet a list of consecutive invoice numbers starting at GLA000249 going to GLA000323 I want to be able to use a macro or a formula to link those invoice numbers to the actual invoices in a folder in "my documents\my excel files\GLA000249.xlsx etc etc" I have tried the macro below but receive error message "error opening file"
    Please Login or Register  to view this content.
    Last edited by FDibbins; 10-22-2012 at 01:17 AM. Reason: added code tags

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Batch Hyperlinks To Invoices In Other Folder

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code. Posting code without them makes your code hard to read and difficult to be copied for testing. Highlight your code and click the # at the top of your post window. For more information about these and other tags, found here

    i have added them for you this time, but please remember in the future
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Batch Hyperlinks To Invoices In Other Folder

    try using the indirect() function?

    =hyperlink(indirect("your-path"&A1&.xlsx"))

  4. #4
    Registered User
    Join Date
    10-21-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Batch Hyperlinks To Invoices In Other Folder

    Hi thanks for the rapid response here is my formula with the first invoice number at cell ref A6 =HYPERLINK(INDIRECT("my documents\my excel files\"&A6&"GLA000249.xlsx")) I am getting a circular reference now #REF
    Last edited by Downunder2012; 10-22-2012 at 01:49 AM. Reason: clarification of cell contents

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Batch Hyperlinks To Invoices In Other Folder

    are you entering that IN A6? f so, that will give you a circ ref, because the formula references A6...so it is referencing itself

  6. #6
    Registered User
    Join Date
    10-21-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Batch Hyperlinks To Invoices In Other Folder

    Yes, I think the penny just dropped I have to enter the formula in a separate cell?

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Batch Hyperlinks To Invoices In Other Folder

    yup, else it is referring to itself

  8. #8
    Registered User
    Join Date
    10-21-2012
    Location
    Sydney Australia
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Batch Hyperlinks To Invoices In Other Folder

    I really appreciate this but put formula in another cell and still receive error, I have to go to work now so I won't be here for an immediate reply but thanks again you have been very helpful I'll check tomorrow.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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