PC Review


Reply
Thread Tools Rate Thread

Create a copy - Worksheet

 
 
=?Utf-8?B?VmFkaGltb28=?=
Guest
Posts: n/a
 
      21st Apr 2007
Dear All,

I want to create more than 25 copy of the worksheet along with same data.
Most of the time i used (Right click) the sheet-->Move or copy-->create copy.
do the same 25 times.
Is there any possible to cretae that much sheets in a single program..?

Thanks in advance for your reply.

Have a Nice day..!
Regards,
Vadhimoo.
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TWlrZSBI?=
Guest
Posts: n/a
 
      21st Apr 2007
You could try this way:-

Sub copysheets()
For copies = 1 To 25
Sheets("Sheet1").Copy After:=Sheets(1)
Next
End Sub

Alter the sheet name to suit

Mike

"Vadhimoo" wrote:

> Dear All,
>
> I want to create more than 25 copy of the worksheet along with same data.
> Most of the time i used (Right click) the sheet-->Move or copy-->create copy.
> do the same 25 times.
> Is there any possible to cretae that much sheets in a single program..?
>
> Thanks in advance for your reply.
>
> Have a Nice day..!
> Regards,
> Vadhimoo.

 
Reply With Quote
 
=?Utf-8?B?VmVyZ2VsIEFkcmlhbm8=?=
Guest
Posts: n/a
 
      21st Apr 2007
Hi Vadhimoo,

Here's one way:

Sub test()
Dim i As Integer

For i = 1 To 25
Sheets("Sheet1").Copy after:=Sheets(Sheets.Count)
Next

End Sub


--
Hope that helps.

Vergel Adriano


"Vadhimoo" wrote:

> Dear All,
>
> I want to create more than 25 copy of the worksheet along with same data.
> Most of the time i used (Right click) the sheet-->Move or copy-->create copy.
> do the same 25 times.
> Is there any possible to cretae that much sheets in a single program..?
>
> Thanks in advance for your reply.
>
> Have a Nice day..!
> Regards,
> Vadhimoo.

 
Reply With Quote
 
=?Utf-8?B?VmFkaGltb28=?=
Guest
Posts: n/a
 
      22nd Apr 2007
Dear Mike,Vergel

Thanks for your help, its working well.

"Mike H" wrote:

> You could try this way:-
>
> Sub copysheets()
> For copies = 1 To 25
> Sheets("Sheet1").Copy After:=Sheets(1)
> Next
> End Sub
>
> Alter the sheet name to suit
>
> Mike
>
> "Vadhimoo" wrote:
>
> > Dear All,
> >
> > I want to create more than 25 copy of the worksheet along with same data.
> > Most of the time i used (Right click) the sheet-->Move or copy-->create copy.
> > do the same 25 times.
> > Is there any possible to cretae that much sheets in a single program..?
> >
> > Thanks in advance for your reply.
> >
> > Have a Nice day..!
> > Regards,
> > Vadhimoo.

 
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: 'Create a copy (of worksheet)' not working ? Dave Peterson Microsoft Excel Discussion 1 8th Feb 2010 10:01 PM
Macro to create a new worksheet that is a copy of an existing one? =?Utf-8?B?S2FpIEN1bm5pbmdoYW0=?= Microsoft Excel Programming 3 3rd Jul 2007 02:30 AM
create a macro to copy a worksheet into another =?Utf-8?B?U2Vhbg==?= Microsoft Excel Misc 7 18th Oct 2006 10:19 PM
Why does excel create a copy of the worksheet i open =?Utf-8?B?UmVuZWU=?= Microsoft Excel Misc 4 2nd Mar 2005 06:17 PM
Create Copy of Current Worksheet Birdy92 Microsoft Excel Programming 1 14th Jan 2004 03:36 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:39 AM.