08-22-2011, 03:34 PM
Got it working! 
i commented the following code:
Excel.Worksheet wsNew=wb.Sheets.Item(wb.Sheets.Count);; wsNew.Name=name
......................................................................^
Try to understand what this peace of code does and it seams the rest of the code dont need it!
Many thanks for the excelent support! (as always
)
best regards,

i commented the following code:
Excel.Worksheet wsNew=wb.Sheets.Item(wb.Sheets.Count);; wsNew.Name=name
......................................................................^
Try to understand what this peace of code does and it seams the rest of the code dont need it!
Many thanks for the excelent support! (as always
)best regards,
