My excel file consists of the following sheets
|_____|_____|____|____|____|____|____|____|____||____||____||____||____|
|_____|_____|____|____|____|____|____|____|____||____||____||____||____|
|_____|_____|____|____|____|____|____|____|____||____||____||____||____|
\__Basic Salary__/\__Bank__/\__Contact__/\__Hourly Salary__/\__Presonal__/
Some thing like this what ever order of the sheets i would like to arrange them in my required order as follows
1) Personal
2) Contact
3) Salary
4) Bank
In this order I would like to get irrespective of the sheet names that I get I would like to arrange in the order I required.
Assuming you are using
Microsoft.Office.Interop.Excel, then your book’s.Worksheetshas methods such asMove([before], [after]). As such, I would suggest playing with theMove()method to re-order the sheets. Note (from the tags): you should not use excel automation from a web application; that scenario is not supported.