Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I have a workbook that contains two sheets., "CostCentres" & "Template"
I need to open the workbook, look at a list of cost centres in the "CostCentres" sheet, and for each one I need to copy the Template sheet. So, if My list of Cost Centres contains 10 records I need to end up with the workbook containing 10 copies of the Template sheet. I have tried a couple of syntax's to achive this but each time I come up with the "method 'Copy' of object '_Worksheet' failed" error each time. The line that errors is objExcelWB.Sheets("Template").Copy , objExcelWB.Sheets(objExcelWB.Sheets.Count) Worksheet is not protected in any way and workbook is not ReadOnly. Any ideas? tia Terry Holland |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Method 'MailEnvelope' of object '_Worksheet' failed | Excel Discussion (Misc queries) | |||
Interactive Chart/ "Method Cells of object '_global' failed" | Excel Programming | |||
Method 'Paste' of object '_Worksheet' failed | Excel Discussion (Misc queries) | |||
Method 'Paste' of object '_worksheet' failed | Excel Programming | |||
METHOD "SELECT" OF OBJECT '_WORKSHEET' FAILED when opening a file | Excel Programming |