ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Moving worksheets (https://www.excelbanter.com/excel-programming/283400-moving-worksheets.html)

Excel[_3_]

Moving worksheets
 
I have a workbook that under different situations will have a
different number of worksheets.

I want to move a new worksheet after a particular worksheet. I want
to use the name of the worksheet. NOT the number of the worksheet.

Is this possible?

Thanks

Vasant Nanavati

Moving worksheets
 
Worksheets("x").Move After:=Worksheets("y")

--

Vasant

"Excel" wrote in message
om...
I have a workbook that under different situations will have a
different number of worksheets.

I want to move a new worksheet after a particular worksheet. I want
to use the name of the worksheet. NOT the number of the worksheet.

Is this possible?

Thanks





All times are GMT +1. The time now is 01:21 AM.

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