whatever your date is, you can use replace:
dtstr = Replace(Date, "/", "")
or
dtstr = Format(Date, "yyyymmdd")
--
Gary
"Corey" <(E-Mail Removed)> wrote in message
news:eN7jhwv$(E-Mail Removed)...
>I need to use a date value in a cell as a workbook name, but have run into
>problems as, although i have changed the appearance of the date to a :
> 31 October 2006 value, rather than a 31/10/06.
> a '/' is not a valid character for a file name, and therefore error's.
>
> But even though the cell value (31 October 2006) does not have any '/'
> (Slashes) in it, when i try to use the value as a workbook name, it still
> grabs the date in a 31/10/06 format.
>
> Therefore, is there a code i can change this date to a 31 10 06, with
> Day,Month,Year separated by a single space?
>
>
>
>
>
> Regards
>
> Corey
>
|