Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 17
Default Add and rename a worksheet

Hi all,

Sorry for this very simple question: How can I add a new worksheet, and then
immediately rename it?

i.e.

Worksheets.add after:=Worksheets("Sheet1") .. and then how?

Thanks a lot.

Frederick Chow
Hong Kong.

P.S. I don't know why my name changes to "Microsoft Forum"... Any help to
change it?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Add and rename a worksheet

Frederick,

You want

Worksheets.Add(After:=worksheets("Sheet1")).Name = "Frederick"

Are you using a web portal to the NGs, such as ExcelForum (I know it is not
that one, but you get the idea)? If so, there must be some way to define
your own handle.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Microsoft Forum" wrote in message
...
Hi all,

Sorry for this very simple question: How can I add a new worksheet, and

then
immediately rename it?

i.e.

Worksheets.add after:=Worksheets("Sheet1") .. and then how?

Thanks a lot.

Frederick Chow
Hong Kong.

P.S. I don't know why my name changes to "Microsoft Forum"... Any help to
change it?




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
Can't rename worksheet Brian Preston Excel Discussion (Misc queries) 1 October 15th 06 03:25 AM
Using information from one worksheet, to rename inserted worksheet Lyn Excel Worksheet Functions 0 March 24th 06 12:54 AM
Rename the worksheet praveen_khm Excel Discussion (Misc queries) 1 January 17th 06 08:05 PM
rename worksheet Anthony Excel Discussion (Misc queries) 4 July 13th 05 01:16 AM
Rename worksheet Donald Duck Excel Programming 3 August 17th 04 10:15 AM


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