+ Reply to Thread
Results 1 to 8 of 8

Macro for extracting amount with dates from various workbooks (Excel 2016)

  1. #1
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Macro for extracting amount with dates from various workbooks (Excel 2016)

    I need code for the following condition

    I have a folder like "xyz", in "xyz" there are thirty or thirty one workbooks (subject to the month), now if I want to take the figures from all these workbooks of a specific person like "nawaz" with different dates, then I need code for this condition.
    NOTE:
    Please keep in mind, First, in all the above workbooks it is not necessary the name will be exist, but in some of them.
    Secondly in addition to the above workbooks there will be one more workbook in the same folder in which all the extracted amount with the date will required, this workbook must be opened with the code.Thirdly, the data in the color range may be more or less in different dates.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    In case someone wants to get data from various books the first priority is to use Power Query.
    But if you don't want to use PQ then

    1: The Source books should have same structure
    2: Sheet Names of the source books should be known or listed in the destination book
    3: Data in source books should be in a proper / organized structure.

    Most of the people who want to get info from closed books don't have well same structure or they don't have a pattern of sheet names of closed books.


    If you really want to get help in this regard , please make sure the above mentioned points. and upload at least 2 source books from which you want to get data from.
    Teach me Excel VBA

  3. #3
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)


  4. #4
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    How do i import all these 5 files into the excel thru power query
    for more see the picture
    Attached Images Attached Images

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    Try
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    Firts When i run this macro, it asks the path, i provide the path but at the path there is no file, whereas there are five files aready there, Secondly there is another macro enabled file in which your code are already exist i.e "example" in which I want to import all these files, please see the picture
    Attached Images Attached Images

  7. #7
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,525

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    Are you talking to me?
    I always test my code before I post when I can test for myself.
    Attached Files Attached Files

  8. #8
    Forum Contributor
    Join Date
    12-23-2012
    Location
    Pakistan
    MS-Off Ver
    Microsoft office LTSC professional plus 2021 version 2403 (Build 17425.20176)
    Posts
    365

    Re: Macro for extracting amount with dates from various workbooks (Excel 2016)

    Sorry sir, there were some misunderstanding, I did it, thanks Mr Jindon

    is there any possibility shown by Mr ImranBhatti above

+ 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. Replies: 5
    Last Post: 04-16-2018, 08:56 AM
  2. Replies: 1
    Last Post: 09-18-2017, 08:27 AM
  3. Replies: 6
    Last Post: 09-01-2017, 12:36 AM
  4. [SOLVED] Macro to copy paste between two workbooks (Excel 2016) fizzling
    By mab.alianza.ez8 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-10-2017, 11:21 AM
  5. Merge two workbooks Excel 2016
    By jamessmckie in forum Excel General
    Replies: 1
    Last Post: 07-01-2016, 10:11 AM
  6. Excel 2016 - Linking workbooks
    By pccamara in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-25-2016, 01:38 PM
  7. [SOLVED] Macro Not picking up 2016 dates
    By groundin in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-01-2016, 12:38 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