+ Reply to Thread
Results 1 to 3 of 3

Macro to select a date range within data with dates

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Macro to select a date range within data with dates

    Hi Guys,

    I need help with a Macro that will extract data from a given range of data. The criteria to do this is a selected date range. A date range is chosen and a macro will select data from the range that has dates either >= and <= the range chosen. I got a macro online to assist with this but I'm having issues with modifying it for my use as it throws up errors. Please assist to modify this macro or if anyone has a similar macro.

    Thank you. Sample excel sheet with data is attached.



    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-23-2005
    Location
    Rome
    MS-Off Ver
    Ms Office 2016
    Posts
    1,628

    Re: Macro to select a date range within data with dates

    See attached file, I modified the macro and I defined the name 'dataOut' for range A1 of sheet 'Flexible Reporting Analysis' because the Advance Filter doesn't want another sheet as destination but it accepts a named range:
    Please Login or Register  to view this content.
    Regards,
    Antonio
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    Lagos
    MS-Off Ver
    Excel 2007
    Posts
    67

    Re: Macro to select a date range within data with dates

    Hi Antonio,

    Thanks it worked.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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