Consulting

Results 1 to 4 of 4

Thread: Extract data from between two dates..

  1. #1

    Extract data from between two dates..

    Hi good people!,

    I have posted on MrExcel, this is the link: http://www.mrexcel.com/forum/excel-q...two-dates.html

    I have not had a good response in 3 hours, so I'm trying here. Below a copy of the thread...

    I have data which populates over time Range A25:G1000000. (Using next available row method). One of the columns (column D) contains dates. I1 and J1 has each a date picker. I would like please, once I have selected the date range, and I click a form control button, (this button runs a macro that changes cell A1 from a "0" to a "1", so, in affect then, when A1 becomes "1", I would like the data extracted from columns A To G of which the dates in column D falls between the selected dates BUT ALSO including the "selected from" and "selected to" date. This info must be displayed in a userform which appears on the sheet. Once the userform is closed, I would like A1 change back to a "0", and the extracted data be cleared.

    I am sure this one is going to be tough maybe, but please, I beg for this as this functionality will be the last to implement in my already complicated but very nice workbook. All and any help will be accepted with the utmost of humility and respect. Thank you all kindly..

  2. #2
    VBAX Guru mancubus's Avatar
    Joined
    Dec 2010
    Location
    "Where I lay my head is home" :D
    Posts
    2,644
    provide us something to work with, ie, your workbook with some sample data.
    PLS DO NOT PM; OPEN A THREAD INSTEAD!!!

    1) Posting Code
    [CODE]PasteYourCodeHere[/CODE]
    (or paste your code, select it, click # button)

    2) Uploading File(s)
    Go Advanced / Attachments - Manage Attachments / Add Files / Select Files / Select the file(s) (multiple files can be selected while holding Ctrl key) / Upload Files / Done
    Replace company specific / sensitive / confidential data. Include so many rows and sheets etc in the uploaded workbook to enable the helpers visualize the data and table structure. Helpers do not need the entire workbook.

    3) Testing the Codes
    always back up your files before testing the codes.

    4) Marking the Thread as Solved
    from Thread Tools (on the top right corner, above the first message)

  3. #3
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Quote Originally Posted by Juriemagic View Post
    I have not had a good response in 3 hours, so I'm trying here.
    Really? 3 hours is nothing to be concerned about, please try to be a little more patient before cross posting.
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  4. #4
    Knowledge Base Approver VBAX Wizard p45cal's Avatar
    Joined
    Oct 2005
    Location
    Surrey UK
    Posts
    5,876
    Please supply a file (with sensitive data altered (eg. with search and replace)) because there are so many possibilities: what's in the macro, what kind of userform (on sheet or a proper userform), what the dates look like, what kind of controls you have and where. If we were to guess we'd probably get it wrong and waste your time (and ours).

    It would be nice if you told the people at MrExcel that you've cross posted here too!

Posting Permissions

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