Do loop to add a new worksheet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
Alex,

No loop is required. Try something like

With ActiveWorkbook.Worksheets
.Add before:=.Item(1)
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 
PERFECT...THANKS!!!



Chip Pearson said:
Alex,

No loop is required. Try something like

With ActiveWorkbook.Worksheets
.Add before:=.Item(1)
End With


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top