+ Reply to Thread
Results 1 to 3 of 3

match for Date

  1. #1
    Registered User
    Join Date
    04-06-2012
    Location
    San Bruno, USA
    MS-Off Ver
    Excel 2003
    Posts
    32

    match for Date

    hi, I have date format in column E (at a moment of search it's in format <3/21> (3/21/2013).
    I tried to run this vba setting tmrow= '3/21', 03/21/2013', etc... and nothing helped.
    Is there any trick to make it work, preferably without converting date into something else?
    with this I have "type mismatch" error


    ' Find first cell # for date 03/21/2013

    Please Login or Register  to view this content.
    Tx all
    Dai
    Last edited by dainova; 03-20-2013 at 01:31 PM.

  2. #2
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: match for Date

    If you are not getting an error, it might be either the data format, or you do not have match
    Change tmrow="3/21" in to proper date format 03/21/2013

    You also need to change the order of the code
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-06-2012
    Location
    San Bruno, USA
    MS-Off Ver
    Excel 2003
    Posts
    32

    Re: match for Date

    Problem solved with Clng
    http://www.mrexcel.com/forum/excel-q...ons-dates.html

+ 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