Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Copy sheet in a workbook

Hi,

I have some problem with programmatically copy paste sheets within a workbook.

When I got in my program to the 50/55th instance, it suddenly write:
"Copy method of Worksheet Class failed!"

Then if I try to copy manually, it even does not work, only, if I copy the
sheet to a new workbook, and then go back and try again copy the original
sheet.

Can anybody help what can cause this problem?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,355
Default Copy sheet in a workbook

Please post your code.
Thanks,
Barb Reinhardt



"pontitt" wrote:

Hi,

I have some problem with programmatically copy paste sheets within a workbook.

When I got in my program to the 50/55th instance, it suddenly write:
"Copy method of Worksheet Class failed!"

Then if I try to copy manually, it even does not work, only, if I copy the
sheet to a new workbook, and then go back and try again copy the original
sheet.

Can anybody help what can cause this problem?

Thanks

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Copy sheet in a workbook

Check out this link...

http://support.microsoft.com/default...84&Product=xlw
--
HTH...

Jim Thomlinson


"pontitt" wrote:

Hi,

I have some problem with programmatically copy paste sheets within a workbook.

When I got in my program to the 50/55th instance, it suddenly write:
"Copy method of Worksheet Class failed!"

Then if I try to copy manually, it even does not work, only, if I copy the
sheet to a new workbook, and then go back and try again copy the original
sheet.

Can anybody help what can cause this problem?

Thanks

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Copy sheet in a workbook


For i = 1 To 58
Sheets("Rep").Copy Befo=Sheets("Rep")

....

if this helps

"Barb Reinhardt" wrote:

Please post your code.
Thanks,
Barb Reinhardt



"pontitt" wrote:

Hi,

I have some problem with programmatically copy paste sheets within a workbook.

When I got in my program to the 50/55th instance, it suddenly write:
"Copy method of Worksheet Class failed!"

Then if I try to copy manually, it even does not work, only, if I copy the
sheet to a new workbook, and then go back and try again copy the original
sheet.

Can anybody help what can cause this problem?

Thanks

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 sheet cells into differnt workbook/sheet, How? IVLUTA Excel Discussion (Misc queries) 2 June 2nd 09 11:16 PM
Copy rows from multiple workbook into a different workbook (sheet) Yossy Excel Programming 19 May 11th 08 12:34 AM
automatic copy and paste from sheet to sheet in a workbook ramseyjramseyj Excel Programming 6 December 11th 04 12:37 AM
Copy sheet from one workbook to another workbook problem Ron de Bruin Excel Programming 3 August 5th 04 07:19 PM


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