#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Copy to end


my line is:
Sheets("Sheet 1").Copy After:=Sheets(3)

This is part of a sheet copy macro, I need it to copy "sheet 1" to the
end, not after sheets(3). The workbook can have 40+sheets. Any help
would be great!!!


--
comotoman
------------------------------------------------------------------------
comotoman's Profile: http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=474121

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,718
Default Copy to end

Sheets("Sheet 1").Copy After:=Sheets(Sheets.Count)


The default sheet name is "Sheet1" so I assume you changed the sheet name to
have a space before the "1".

--
Jim
"comotoman" wrote
in message ...
|
| my line is:
| Sheets("Sheet 1").Copy After:=Sheets(3)
|
| This is part of a sheet copy macro, I need it to copy "sheet 1" to the
| end, not after sheets(3). The workbook can have 40+sheets. Any help
| would be great!!!
|
|
| --
| comotoman
| ------------------------------------------------------------------------
| comotoman's Profile:
http://www.excelforum.com/member.php...o&userid=27292
| View this thread: http://www.excelforum.com/showthread...hreadid=474121
|


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Copy to end

Sheets("Sheet 1").Copy After:=Sheets(sheets.count)

--
Regards,
Tom Ogilvy

"comotoman" wrote
in message ...

my line is:
Sheets("Sheet 1").Copy After:=Sheets(3)

This is part of a sheet copy macro, I need it to copy "sheet 1" to the
end, not after sheets(3). The workbook can have 40+sheets. Any help
would be great!!!


--
comotoman
------------------------------------------------------------------------
comotoman's Profile:

http://www.excelforum.com/member.php...o&userid=27292
View this thread: http://www.excelforum.com/showthread...hreadid=474121



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 and paste versus copy and insert copied cells Alana New Users to Excel 1 September 28th 07 08:58 PM
Copy/Paste how to avoid the copy of formula cells w/o calc values Dennis Excel Discussion (Misc queries) 10 March 2nd 06 10:47 PM
EXCEL FILE a copy/a copy/a copy ....filename ve New Users to Excel 1 September 29th 05 09:12 PM
Code to copy range vs Copy Entire Worksheet - can't figure it out Mike Taylor Excel Programming 1 April 15th 04 08:34 PM
How copy format, font, color and border without copy/paste? Michel[_3_] Excel Programming 1 November 5th 03 04:43 PM


All times are GMT +1. The time now is 11:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"