Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Here's my code which does nothing. Generates no error, but doesn't copy the
sheet into the workbook. It does successfully rename the "Operations" sheet, but is supposed to copy a sheet into the workbook in front of that one. private void CopyTab(excel.Worksheet ws, excel.Workbook wb) { try { foreach (excel.Worksheet w in wb.Sheets) { if (w.Name.IndexOf("Operations") -1) { w.Copy(ws, Type.Missing); // copy ws into wb workbook // gets no error, but doesn't do anything else either! w.Name = "Operations (updated)"; break; } } // end foreach } |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Copy sheet cells into differnt workbook/sheet, How? | Excel Discussion (Misc queries) | |||
Copy rows from multiple workbook into a different workbook (sheet) | Excel Programming | |||
Copy Sheet from One workbook to another EXISTING workbook | Excel Programming | |||
automatic copy and paste from sheet to sheet in a workbook | Excel Programming |