Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default worksheet copy method

people, in help i saw that worksheet object has copy method

but how to copy a worksheet with predefined name

for example now i'm copy worksheets by this

Worksheets("graph").Copy after:=Worksheets("...")
Worksheets("graph (2)").Name = "s"
CStr(rs.Fields("csheet"))


but i want to copy worksheet with predefined name,

it is possible,
i cant find that in help :

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default worksheet copy method

Worksheets("graph").Copy after:=Worksheets("...")
Activesheet.Name = "Mygraph"

--
Regards,
Tom Ogilvy


"Marek " wrote in message
...
people, in help i saw that worksheet object has copy method

but how to copy a worksheet with predefined name

for example now i'm copy worksheets by this

Worksheets("graph").Copy after:=Worksheets("...")
Worksheets("graph (2)").Name = "s" &
CStr(rs.Fields("csheet"))


but i want to copy worksheet with predefined name,

it is possible,
i cant find that in help :(


---
Message posted from http://www.ExcelForum.com/



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 Method of Worksheet Class Failed Steph[_3_] Excel Programming 2 April 7th 04 01:43 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 0 April 5th 04 11:12 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 1 April 5th 04 09:56 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 1 April 5th 04 09:38 PM
Copy Method of Worksheet Class Failed Steph[_3_] Excel Programming 1 April 5th 04 07:56 PM


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