Thread: date extraction
View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben Gord Dibben is offline
external usenet poster
 
Posts: 22,906
Default date extraction

Selection.NumberFormat = "m/d/yy;@" simply formats the date to Text

Can you post the entire macro?


Gord Dibben MS Excel MVP

On Tue, 2 Feb 2010 16:21:01 -0800, Donna wrote:

I have a macro set up that pulls out the dates from my information.

I am not sure but I think what I have below is the spot that defines the
date format to pull out my dates from my data. If I put 2/2/10 it does not
pull out the date. If I put 02 it does pull out the date. Is there a way so
it will pull it out whether I put 2 or 02 for the month?

Selection.NumberFormat = "m/d/yy;@"
Thank You