JScript to move Excel Worksheet

K

Kenneth Chin

Using JScript, how do I move a worksheet so that it is at
the end of the workbook?

Currently using JScript, I can create an Excel Workbook
and add sheets to it, but all the new sheets are added in
the front of the workbook.

--Ken
 
C

Chong Moua

Hi Ken,

Try this ...
--------------------------------------
'to add sheets to back
Sheets.Add after:=Sheets(Sheets.Count)

'to move Sheet1 to back
Sheets(1).Move after:=Sheets(Sheets.Count)
 

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

Top