+ Reply to Thread
Results 1 to 5 of 5

Macro that will select a range within a given date?

  1. #1
    Registered User
    Join Date
    05-12-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    12

    Macro that will select a range within a given date?

    Hello

    Does anyone know how I can create a macro that will look at the table on the sheet & select all the rows within a given date range? What I'm doing is creating a spreadsheet for paperwork we have received. I want to be able to press the macro button, it to ask me which dates I want to select (to allow me to be able to cut & paste into an e-mail) then it will copy the selected rows so all I have to do is paste it in to the body of an email.


    Hope this makes sense.

    Thanks

  2. #2
    Forum Guru shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,655

    Re: Macro that will select a range within a given date?

    AutoFilter?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-12-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro that will select a range within a given date?

    Yea that kind of idea but need it to then select all the rows specified after the given date and highlight them, copy them then return it to how it was before. its hard to explain what i want it to do really

  4. #4
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Macro that will select a range within a given date?

    Automating Advanced Filter is ideal for this. See attached example, which you should be able to adapt.

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

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  5. #5
    Registered User
    Join Date
    05-12-2010
    Location
    Manchester
    MS-Off Ver
    Excel 2007
    Posts
    12

    Re: Macro that will select a range within a given date?

    Yup thats pretty much it thanks, hopefully I can figure out how to slot that in


    cheers :-)

+ 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