+ Reply to Thread
Results 1 to 3 of 3

Find with Dates not Working

  1. #1
    Registered User
    Join Date
    12-27-2016
    Location
    Ontario, Canada
    MS-Off Ver
    2010
    Posts
    34

    Find with Dates not Working

    I get a "Run-time error '91': Object variable or with block variable not set" error. I think it might have something to do with the date format. In the worksheet the format is m/d/yy but I think when it tries to do the find it is using m/d/yyyy which it doesn't find and then gives the error. If this truly is the case, is there a way around the date formatting issue to allow the find to work?

    Please Login or Register  to view this content.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Find with Dates not Working

    Try change
    Please Login or Register  to view this content.

  3. #3
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: Find with Dates not Working

    Hi Bob- is the 'Find' in a loop? If you're trying to find successive hits, you use Find once, remember the first address, then loop w FindNext until you hit first address again (wrap-around).
    Last edited by leelnich; 06-06-2017 at 12:46 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Formula to return the 'earliest' and 'latest' dates from a list of dates is not working
    By Hawkmoth1 in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-21-2017, 07:14 AM
  2. [SOLVED] Working with specific dates against Week Commencing dates
    By daveb86 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 04-11-2015, 05:36 AM
  3. Find all dates between two dates and then find if there is missing data
    By patrickmt in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-03-2015, 11:57 AM
  4. Find total working days between two dates
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 24
    Last Post: 07-17-2014, 11:51 AM
  5. Replies: 9
    Last Post: 03-08-2013, 11:50 AM
  6. Replies: 7
    Last Post: 01-16-2009, 05:04 AM
  7. [SOLVED] Formula to find the working days difference between to dates?
    By Mudgeman in forum Excel General
    Replies: 2
    Last Post: 05-15-2006, 02:35 AM

Tags for this Thread

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