PC Review


Reply
Thread Tools Rate Thread

Copy sheet in a workbook

 
 
pontitt
Guest
Posts: n/a
 
      10th Jul 2008
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 With Quote
 
 
 
 
Barb Reinhardt
Guest
Posts: n/a
 
      10th Jul 2008
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 With Quote
 
Jim Thomlinson
Guest
Posts: n/a
 
      10th Jul 2008
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
>

 
Reply With Quote
 
pontitt
Guest
Posts: n/a
 
      10th Jul 2008

For i = 1 To 58
Sheets("Rep").Copy Before:=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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
RE: Copy sheet cells into differnt workbook/sheet, How? Shane Devenshire Microsoft Excel Misc 1 2nd Jun 2009 11:16 PM
Copy sheet cells into differnt workbook/sheet, How? IVLUTA Microsoft Excel Misc 0 2nd Jun 2009 10:56 PM
Copy rows from multiple workbook into a different workbook (sheet) Yossy Microsoft Excel Programming 19 11th May 2008 12:34 AM
Copy Range to a New WorkBook + Name Sheet a cell Value + Name WorkBook another Celll Value Corey Microsoft Excel Programming 2 2nd Nov 2006 05:01 AM
copy a sheet to a sheet within another workbook - WITHOUT buttons from the first shee equex Microsoft Excel New Users 0 21st Feb 2006 02:02 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:52 PM.