View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sabosis Sabosis is offline
external usenet poster
 
Posts: 47
Default Convert worksheet string name to date format in cell

Hello-

I have a workbook that will always have a sheet name such as 082509. I
want to have cell J2 take that string and convert to a MM/DD/YY
format. I tried the following, but it did not work:

Range("J2").Select
ActiveCell.FormulaR1C1 = DateValue(Format(Range(Worksheet
(1)).Value, "00/00/00"))

Any ideas?

Thanks