Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If anyone could help on this...
Stuck on how to do a LOOP to add a new worksheet to the front of a workbook with unkown amount of worksheets. I get about as far as: Dim WrkBk as Integer WrkBk = ActiveWorkbook.Worksheets.Count THANKS |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Alex,
No loop is required. Try something like With ActiveWorkbook.Worksheets .Add befo=.Item(1) End With -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Alex" wrote in message ... If anyone could help on this... Stuck on how to do a LOOP to add a new worksheet to the front of a workbook with unkown amount of worksheets. I get about as far as: Dim WrkBk as Integer WrkBk = ActiveWorkbook.Worksheets.Count THANKS |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
PERFECT...THANKS!!!
"Chip Pearson" wrote: Alex, No loop is required. Try something like With ActiveWorkbook.Worksheets .Add befo=.Item(1) End With -- Cordially, Chip Pearson Microsoft MVP - Excel Pearson Software Consulting, LLC www.cpearson.com "Alex" wrote in message ... If anyone could help on this... Stuck on how to do a LOOP to add a new worksheet to the front of a workbook with unkown amount of worksheets. I get about as far as: Dim WrkBk as Integer WrkBk = ActiveWorkbook.Worksheets.Count THANKS |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
How to loop through all ranges in a worksheet | Excel Programming | |||
how do you loop through each worksheet? | Excel Programming | |||
Loop through checkBox on worksheet | Excel Programming | |||
worksheet loop | Excel Programming | |||
How? Macro to copy range to new worksheet, name new worksheet, loop | Excel Programming |