shi
are you doing this with formula or macro? I have never heard of instr. but
since you used the word parce....
I took today's date and did a text to column using delimited parse, other =
/ and it parsed the date numbers into 3 cells omitting the /. I then used
this formula...
=C6&D6&E6 to achieve the results 7222007.
i used this formula =C6&D6&RIGHT(E6,2) to achieve the results 72207.
macro...
Sub rename()
Dim nam1 As String
Dim nam2 As String
Dim nam3 As String
Dim sd As Date
sd = InputBox("Enter the date")
nam1 = Day(sd)
nam2 = Month(sd)
nam3 = Year(sd)
ActiveWorkbook.SaveAs Filename:= _
"C:\yourpath\filename" & nam2 & " " & nam1 & " " & nam3 & ".xls" _
, FileFormat:=xlNormal, Password:="", WriteResPassword:="", _
ReadOnlyRecommended:=False, CreateBackup:=False
end sub
regards
FSt1
trying to parse a date to save appended to filename with spaces, don't want /.