+ Reply to Thread
Results 1 to 4 of 4

Add vlookup data links top external closed workbook

  1. #1
    Registered User
    Join Date
    05-10-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    68

    Add vlookup data links top external closed workbook

    Hi all,

    Please see below.
    I am adding a formula to a spreadsheet, that looks up a section in a closed workbook. This will always be the prior working day
    - So if today is the 23rd, then the link should connect to the 20th - as 23rd is Monday, prior date is Friday 20th)
    The user has to update the link manually, as the file date is not changing. - i.e. Bank Rec 16 Sept


    Please Login or Register  to view this content.


    Below, is my attempt to automate this

    Create link to the files folder
    Please Login or Register  to view this content.
    Adding code for link
    When the VBA adds the following, it asks you to make the link (see attached screen shot - naming convention is changed from Sept to Sep)


    Please Login or Register  to view this content.
    So, How do I make [Bank Rec 16 Sep.xlsm] become [Bank rec Tdate.xlsm] and not try to auto update the link during the macro process?


    Many many thanks
    Attached Images Attached Images

  2. #2
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Add vlookup data links top external closed workbook

    Hi there,

    It's difficult for me to test this fully without access to your workbook and file structure, but see if the following code gets you moving in the right direction:

    Please Login or Register  to view this content.
    The highlighted values may be altered to suit your own requirements.


    Hope this helps - please let me know how you get on.

    Regards,

    Greg M

  3. #3
    Registered User
    Join Date
    05-10-2013
    Location
    london
    MS-Off Ver
    Excel 2010
    Posts
    68

    Re: Add vlookup data links top external closed workbook

    Hi Greg M

    Sorry for he delay, yes this works with a few tweaks

    Thanks for your help

  4. #4
    Forum Expert Greg M's Avatar
    Join Date
    08-16-2007
    Location
    Dublin. Ireland
    MS-Off Ver
    Office 2016
    Posts
    4,481

    Re: Add vlookup data links top external closed workbook

    Hi again,

    Many thanks for your feedback and also for the Reputation increase - much appreciated!

    You're welcome - glad I was able to help.

    Best regards,

    Greg M

+ 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] External Links result in #VALUE errors when external file is closed
    By ziggyztz in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-24-2019, 04:41 PM
  2. [SOLVED] VBA for Every 15 min workbook will open and save data and close (for external links update
    By rajeshn_in in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-02-2017, 06:52 PM
  3. Replies: 0
    Last Post: 04-02-2014, 03:25 PM
  4. Replies: 0
    Last Post: 03-27-2014, 12:38 PM
  5. Possible to have a shared workbook update external data links?
    By scottatbuckman in forum Excel General
    Replies: 1
    Last Post: 03-03-2014, 12:38 AM
  6. [SOLVED] External links break after the source workbook is closed
    By jankee in forum Excel General
    Replies: 6
    Last Post: 05-21-2013, 09:14 AM
  7. Dynamic VLOOKUP from external, closed workbooks
    By dolik in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-13-2005, 08:44 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