ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Emergency ( Adding Worksheets dynamically in Workbookds) (https://www.excelbanter.com/excel-programming/289249-emergency-adding-worksheets-dynamically-workbookds.html)

Ussiddiqui[_3_]

Emergency ( Adding Worksheets dynamically in Workbookds)
 
Hi, i am in a hurrey, how to add worksheets dynamically in Excel Work
Books , i want to know this thing that how to do that with the help of
Code.


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


Rob van Gelder[_4_]

Emergency ( Adding Worksheets dynamically in Workbookds)
 
Emergency,

Worksheets.Add

Rob

"Ussiddiqui " wrote in message
...
Hi, i am in a hurrey, how to add worksheets dynamically in Excel Work
Books , i want to know this thing that how to do that with the help of
Code.


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




Rockee052[_21_]

Emergency ( Adding Worksheets dynamically in Workbookds)
 
Just in case you want to add a name to your worksheet

Worksheets.Add
ActiveSheet.Name = ("whatever")


Rocke

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


Tom Ogilvy

Emergency ( Adding Worksheets dynamically in Workbookds)
 
or even:
i = Worksheets.count + 1
sName = "Sheet" & i
Worksheets.Add(after:=Worksheets(Worksheets.Count) ).Name = sName


--
Regards,
Tom Ogilvy

"Rockee052 " wrote in message
...
Just in case you want to add a name to your worksheet

Worksheets.Add
ActiveSheet.Name = ("whatever")


Rockee


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





All times are GMT +1. The time now is 12:38 PM.

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