Results 1 to 3 of 3

Search range for date, then capture details

Threaded View

  1. #1
    Forum Contributor
    Join Date
    09-04-2013
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    298

    Search range for date, then capture details

    I've done similar to this before but it's been a while so I'm kind of rusty.

    I need to search a range (B2:ZZ500) for a date between today and variable X (X will be taken from a userform).

    For each date in the range after today but before X, I need it to do the following:

    Capture the column header value (so row 1 of whatever column it found the date in) as variable colheader

    Capture the row header value (column A of whatever row the date was found in) as variable rowheader

    (So if a matching date was found in B63, it would store the value in B1 as colheader and the value in A63 as rowheader.

    At this point another script will run that will populate a new worksheet with colheader and rowheader, and then move back to the original spreadsheet to search for the next date in the range meeting this criteria, and repeat the process until all applicable dates have been found (and captures into the new worksheet).

    I do not need help populating the new worksheet, I have the code for that part, I just need the rest of the script I described.

    Thanks!
    Last edited by ks100; 06-15-2015 at 11:58 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 10-14-2014, 07:17 AM
  2. [SOLVED] how can i search and copy details of a particular User details in Sheet1
    By baig123 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-10-2014, 02:58 AM
  3. Search large date range with narrow filetered range
    By druth in forum Excel General
    Replies: 14
    Last Post: 08-02-2014, 09:01 AM
  4. Search and paste corresponding details
    By haddo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2013, 04:20 AM
  5. Search date range +/- 7 days and return date that falls within range
    By tlafferty in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-13-2013, 03:26 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