Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 25
Default search value not formula with .Find

Hi , i am using

Set CK = Range("B5:B11").Find("01-02-04")

where B5=a date e.g 31-01-04
B6="B5+1" e.g 01-02-04 * (cant find this cell)
B7+"B5+2" etc

B5 to B11 are date format "dd-mm-yy"

Thanks Sunil


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default search value not formula with .Find

("01-02-04")
will be interpreted mm-dd-yy in VBA. convert to a dateserial

DateSerial(2004,2,1)

--
Regards,
Tom Ogilvy

Sunil Patel wrote in message
...
Hi , i am using

Set CK = Range("B5:B11").Find("01-02-04")

where B5=a date e.g 31-01-04
B6="B5+1" e.g 01-02-04 * (cant find this cell)
B7+"B5+2" etc

B5 to B11 are date format "dd-mm-yy"

Thanks Sunil




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Search / find Formula Michael Excel Worksheet Functions 1 December 22nd 08 03:22 PM
IF with Search/Find??? TotallyConfused Excel Worksheet Functions 5 August 1st 08 10:05 AM
Help with a formula for concatenate and search/find with 3 columns Mel Excel Worksheet Functions 4 March 7th 05 09:12 PM
Can Search find 2 or more "/"? Wind54Surfer Excel Discussion (Misc queries) 2 February 22nd 05 04:31 PM
Search and find Rick K Excel Programming 1 August 21st 03 04:15 AM


All times are GMT +1. The time now is 10:36 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"