+ Reply to Thread
Results 1 to 5 of 5

Code for data extraction

  1. #1
    Registered User
    Join Date
    11-22-2014
    Location
    Kenya
    MS-Off Ver
    2007
    Posts
    6

    Code for data extraction

    Dear All,

    Kindly assist a friend.

    I have a master workbook. Column 'G' has dates in the format 'dd/mm,yyyy.
    I regularly extract data from the master sheet using dates; say filtering data between 1/11/2014 and 30/11/2014 and copy it to a new sheet. I know I can use a formular but since this is a routine task, a macro will do.
    Kindly assist me.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: Code for data extraction

    Try this:

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    11-22-2014
    Location
    Kenya
    MS-Off Ver
    2007
    Posts
    6

    Re: Code for data extraction

    Thanks Alan,

    The code is working but as I indicated the data is in more than 200,000 raws hence it returns data out of range. Kindly assist.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,929

    Re: Code for data extraction

    I don't understand. Are you getting an error message when you run the code? If so, provide the full error message and the line of code that is highlighted when you click on debug.

  5. #5
    Forum Contributor
    Join Date
    04-14-2014
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    198

    Re: Code for data extraction

    I am with alan... his code should do exactly what you are asking if you have 80000000000000000 rows it will still find the last row of the data and copy and paste it where you want it....

+ 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. Data extraction
    By ajlo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-19-2013, 12:50 PM
  2. Replies: 6
    Last Post: 10-30-2012, 11:26 AM
  3. Data extraction
    By Peltz in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-19-2012, 09:31 AM
  4. Trendline coefficient extraction code
    By JosieB in forum Excel Charting & Pivots
    Replies: 6
    Last Post: 06-17-2010, 08:10 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