Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combine Excel files.
#17
Yes Smile

Maybe Excel does not like some characters in new name.

Try this macro. It renames the last sheet.
Macro Macro1526
Code:
Copy      Help
ExcelSheet esm.Init
Excel.Workbook wb=esm.ws.Parent
Excel.Worksheet wsLast=wb.Sheets.Item(wb.Sheets.Count) ;;get last sheet object
out wsLast.Name ;;show old name
wsLast.Name="test" ;;rename


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)