ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Naming a newly added sheet (https://www.excelbanter.com/excel-programming/307579-re-naming-newly-added-sheet.html)

Frank Kabel

Naming a newly added sheet
 
Hi
try
dim wks as worksheet
set wks = worksheets.add
wks.name="your name"


--
Regards
Frank Kabel
Frankfurt, Germany

"Dr. Schwartz" <Dr. schrieb im
Newsbeitrag ...
If I add a new sheet to my workbook with sheet.add Excel names the

sheet.
However the name depends on how many other sheets the workbook

contains.

Does anyone know how to add a sheet and name right away




All times are GMT +1. The time now is 10:27 AM.

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