08-22-2011, 04:55 PM
Gintaras Wrote:Yes![]()
Maybe Excel does not like some characters in new name.
Try this macro. It renames the last sheet.
Macro Macro1526
This peace of code works like a charm!
Quote:Try to replace that line to
wb.ActiveSheet.Name=name
this change returns an RT error saying that "the name is invalid...". (In Pt language, so this message is get direct from excel)
