Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert Sheet
Hi, Is there a way to insert/add a sheet at the end of a workbook, without knowing the # of sheets or the name of the sheets(The name & number of sheets changes weekly)? Any help would be greatly appreciated! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=502573 |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert Sheet
Steve,
Try With ThisWorkbook.Worksheets .Add(after:=.Item(.Count)).Name = "New Name" End With -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "STEVEB" wrote in message ... Hi, Is there a way to insert/add a sheet at the end of a workbook, without knowing the # of sheets or the name of the sheets(The name & number of sheets changes weekly)? Any help would be greatly appreciated! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=502573 |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Insert Sheet
Thanks Chip, It worked great! I appreciate your help! -- STEVEB ------------------------------------------------------------------------ STEVEB's Profile: http://www.excelforum.com/member.php...fo&userid=1872 View this thread: http://www.excelforum.com/showthread...hreadid=502573 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
insert sheet tab is not functioning and can't add new sheet | Excel Worksheet Functions | |||
Insert Sheet | Excel Worksheet Functions | |||
insert query into excell sheet to update excell sheet and pivot table | Excel Discussion (Misc queries) | |||
Insert Sheet | Excel Programming | |||
Inserting a row in sheet A should Insert a row in sheet B, removing a row in Sheet A should remove the corresponding row in sheet B | Excel Programming |