LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default Excel sheet copy problem

Hi,
Iam trying to copy a sheet using VBA, but in vain,

The code is very simple as below,

Sheets("Sheet1).Copy After:=Sheets(Sheets.Count)

But the execution bombs out without any error notification.
When i try to debug and step thru, after this line gets executed,
the execution comes out without any indication of error.
Further statements are not executed and the copy operation does not
take place.

Is something wrong with the way iam trying to copy a sheet?

I need to copy the sheet as the sheet contains some form objects(like
buttons)
and i found that it was quite a hassle to add a new sheet, move the
text, create form objects on the new sheet and most importantly add the
handling code for the forms.
I thought i would create a sheet as a template in the same workbook and
copy and create a new sheet as and when required. But a simple thing
(or i think so) as this is not working.

Can someone help me out?

Using Excel 2002

regards
thulasi

 
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 problem Casey[_43_] Excel Programming 0 January 19th 06 09:15 PM
Problem: How to copy excel sheet in C++ sgwong Excel Programming 0 October 7th 05 02:54 AM
This'll stump you! Problem with Copy Sheet between Excel versions tdw Excel Programming 4 April 9th 05 04:33 AM
Copy sheet problem SiriS Excel Programming 10 May 6th 04 04:21 AM
Copy Sheet Problem Jim[_34_] Excel Programming 8 January 2nd 04 11:50 AM


All times are GMT +1. The time now is 04:27 PM.

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"