ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   naming sheets (https://www.excelbanter.com/excel-programming/413281-naming-sheets.html)

ranswrt

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

Don Guillett

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



ward376

naming sheets
 
activesheet.name = "mysheet"

Cliff Edwards


All times are GMT +1. The time now is 04:21 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com