Results 1 to 10 of 10

Thread: Apply Vlookup formula in all the available sheets in a workbook

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    Fuhrer, Vierte Reich DocAElstein's Avatar
    Join Date
    Aug 2014
    Posts
    10,457
    Rep Power
    10
    Hi,
    In the next macro version here, http://www.excelfox.com/forum/showth...ll=1#post11828 , I have modified it so that it will try to open a file that has the name like "MSCI Equity Index Constituents " & [a date one month earlier than the date on the current file]

    What it does basically is:
    It looks at the date in the name of the current file, (the current file is the file from which the coding is running )
    It then makes a string source book name which contains the date for one Month before the date in the name of the current file.

    So if you run Sub MakeFormulas4() in the attached workbook, "MSCI Equity Index Constituents 20191231.xlsm" , then it will open a workbook saved in the same folder with the name "MSCI Equity Index Constituents 20191130.xlsm" ( "MSCI Equity Index Constituents 20191130.xlsm" is then what you refer to as your source book )



    I don't understand the rest of what you are asking in your last post.


    Alan
    Attached Files Attached Files
    Last edited by DocAElstein; 01-04-2020 at 02:45 PM.
    ….If you are my competitor, I will try all I can to beat you. But if I do, I will not belittle you. I will Salute you, because without you, I am nothing.
    If you are my enemy, we will try to kick the fucking shit out of you…..
    Winston Churchill, 1939
    Save your Forum..._
    KILL A MODERATOR!!

Similar Threads

  1. Split Workbook In To Sheets, Export To Folder and Move File
    By doug@powerstroke.us in forum Excel Help
    Replies: 2
    Last Post: 05-22-2013, 06:45 PM
  2. Replies: 7
    Last Post: 05-08-2013, 07:12 PM
  3. Vlookup Multiple Values By Adding Formula With Loop In VBA
    By Safal Shrestha in forum Excel Help
    Replies: 15
    Last Post: 04-22-2013, 04:49 PM
  4. Vlookup - Multiple Sheets
    By Suhail in forum Excel Help
    Replies: 3
    Last Post: 01-30-2013, 06:47 PM
  5. Copy Sheets To New Workbook And Save
    By Prabhu in forum Excel Help
    Replies: 5
    Last Post: 09-06-2011, 09:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •