Results 1 to 7 of 7

Finding a Date with the Find Command

Threaded View

  1. #1
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,926

    Finding a Date with the Find Command

    Here is the offending line:
    Set rngD = shS.Range(shS.Cells(HomeRow, 1), shS.Cells(HomeRow, 52)).Find(clD.Offset(3, 0).Value, _
                    LookIn:=xlValues, lookat:=xlWhole)
    The value I am looking for is 6/14/2017, the value in the cell is 6/14/2017 - yes both are dates and not strings. Home row is the row that contains the dates. It also contains other garbage like strings for header "W/E x/y" - could this garbage interfere with the search. All the web searches I've done says I'm doing it right. I have US settings on my computer and both this spreadsheet and the workbooks that it reads are on the same settings.

    A version of this program that looks for the strings matching the W/E dates works perfectly. I'm trying to adapt it to find a date rather than a string.

    The zip file contains the program and two sample files: on the program file, In Cell B1 on the control panel enter the path name of the directory where the data files are. Put the data files in this directory. The output should provide two lines of data on the backlog sheet: one for Sample Data Sheet A and another for Sample Data Sheet B.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Request help finding text next to a date, finding the same date in another column...
    By Biff Malibu 636 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 01-11-2016, 12:34 AM
  2. [SOLVED] Finding a command button in a row and deleting it.
    By Ataraxicatom in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-19-2014, 12:17 PM
  3. [SOLVED] Find function not finding date in row
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-22-2014, 11:22 AM
  4. VBA | Find Today's Date by Command Button
    By maintguy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-11-2012, 01:04 PM
  5. InStr command finding too many matches
    By SarahPintal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-28-2010, 03:10 AM
  6. vba: find command, finding exact values
    By icylemontea in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-11-2010, 02:48 PM
  7. Not finding string error fix in macro find command
    By Aussie_Striker in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-21-2007, 05:40 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