Thread
:
Rename active sheet
View Single Post
#
4
Posted to microsoft.public.excel.programming
Nigel[_2_]
external usenet poster
Posts: 735
Rename active sheet
Sub Rename()
With ActiveSheet
.Name = .Cells(.Rows.Count, "A").End(xlUp) & _
Replace(Replace(.Cells(.Rows.Count, "E").End(xlUp), "/", "-"), ":", "-")
End With
End Sub
--
Regards,
Nigel
"Little Penny" wrote in message
...
I'm looking for a macro that will take the last used cell with a value
in column A and E. Combine the two values and rename the active sheet.
Colum A is formatted for text. Colum E is formatted for the date and
time.( m-d-yy h-mmAM/PM;@")
Example:
A E
Cedarhurst 8-3-07 9-00AM
Should rename the active sheet (Cedarhurst 8-3-07 9-00AM)
Thanks
Reply With Quote
Nigel[_2_]
View Public Profile
Find all posts by Nigel[_2_]