Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 140
Default Error copying sheets

I have a template in a workbook and the macro copies this to a new sheet,
renames the sheet and then carries on down a list of fund codes (copying the
template to a new sheet and renaming it), this works fine for the first 30 or
so then errors out. My code is below and i will be grateful if anyone can
point me in the right direction as to how to sort this problem out. It does
not always happen which is very frustrating.

For Each cell In Range(Range("ClientFunds").Offset(1, 0),
Range("ClientFunds").End(xlDown))

Application.ThisWorkbook.Sheets("Template").Select
Application.ThisWorkbook.Sheets("Template").Copy
after:=Sheets("Template") 'copies temtplate sheet

Sheets("Template" & " (2)").Name = cell '.Value 'renames
template sheet to fund in question
Next


--
with kind regards

Spike
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying Sheets Stacy C[_2_] Excel Discussion (Misc queries) 3 July 27th 09 11:03 PM
Copying Sheets Ross Excel Discussion (Misc queries) 1 January 2nd 08 07:02 PM
Sporadic Error Copying Sheets from one workbook to another [email protected] Excel Discussion (Misc queries) 9 May 2nd 07 09:21 PM
Copying Sheets ianripping[_21_] Excel Programming 2 January 16th 04 12:28 PM
Copying sheets John Excel Programming 1 October 24th 03 07:37 PM


All times are GMT +1. The time now is 12:43 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"