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

I use the code 'sheets.add' to add a sheet to my workbook. How do I then
write a code to name the sheet that was just added?
Thanks
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 360
Default naming sheets

activesheet.name = "mysheet"

Cliff Edwards
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,124
Default naming sheets

You should ALWAYS post YOUR code for comments.
next line
activesheet.name="newname"
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"ranswrt" wrote in message
...
I use the code 'sheets.add' to add a sheet to my workbook. How do I then
write a code to name the sheet that was just added?
Thanks


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
VBA Help naming sheets jlclyde Excel Discussion (Misc queries) 8 November 20th 07 09:59 PM
VBA Help Naming Sheets jlclyde Excel Programming 4 November 20th 07 09:19 PM
naming sheets jhyatt Excel Programming 5 October 8th 07 09:04 PM
naming sheets Christian Galbavy Excel Programming 2 May 16th 05 10:36 AM
Naming Workbooks and Sheets Mike Excel Programming 2 February 20th 04 05:55 PM


All times are GMT +1. The time now is 02:32 AM.

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"