Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy method of worksheet class failed - loop copying worksheets


Hi again,

Here's another one I found documentation for online but still can'
manage to fix.

I am using a certain sheet as a template that gets copied and rename
many times. After a while I get the following error

Run-Time error '1004' : Copy method of worksheet class failed

I read that this is related to an excel limitation/bug that causes thi
and found some microsoft articles explaining that the file must b
opened and closed as a workaround.

What's the best way to workaround this bug? At most I will need to d
like 25 worksheet copies in a session -

This is the code that causes the problem.
Worksheets(template(I)).Select
Worksheets(template(I)).Cop
after:=Worksheets(Application.Sheets.Count)


Thanks so much for any help - My head is hurting from trying to fi
this.

Lui

--
li
-----------------------------------------------------------------------
lif's Profile: http://www.excelforum.com/member.php...fo&userid=3574
View this thread: http://www.excelforum.com/showthread.php?threadid=56682

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
copy method of worksheet class failed Dennis Mak Excel Programming 1 July 8th 06 04:27 PM
Copy method of worksheet class failed - help! Chet Shannon[_4_] Excel Programming 11 April 10th 06 05:18 AM
Copy method of Worksheet class failed Francis Brown Excel Programming 1 October 26th 05 08:22 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 2 April 7th 04 01:43 PM
RE :Copy method of Worksheet class failed? Steph[_3_] Excel Programming 0 April 2nd 04 11:04 PM


All times are GMT +1. The time now is 04:40 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"