Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Combine Excel files.
#6
Hi Gintaras,

I tested your code with one example file. It copy one sheet but fails in the next ones! The sheet that is selected when you save the original file is copy well but the remain return a RT error:
Error (RT) in ExcelCopySheets: 0x800A03EC, . ?
in the line:
Excel.Worksheet wsNew=wb.Sheets.Item(wb.Sheets.Count); wsNew.Name=name
right before the "...wsNew.Name=..."


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)