View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.programming
Ivan Raiminius Ivan Raiminius is offline
external usenet poster
 
Posts: 258
Default Selecting only certain characters from a cell value?

Hi,

use this formula in VBA:

date=cdate(mid("Wed 17 Nov 2004 05:34P ",4,len("Wed 17 Nov 2004
05:34P ")-4))

You will get date as result.

In case you want to convert it somehow else, explore type conversion
functions in VBA help.

Regards,
Ivan