Index: src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java =================================================================== RCS file: /home/cvspublic/jakarta-poi/src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java,v --- src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java 6 Feb 2003 10:29:45 -0000 1.20 +++ src/java/org/apache/poi/hssf/usermodel/HSSFWorkbook.java 3 Mar 2003 15:08:44 -0000 @@ -251,6 +251,21 @@ public final static byte ENCODING_COMPRESSED_UNICODE = 0; public final static byte ENCODING_UTF_16 = 1; + + + /** + * sets the order of appearance for a given sheet. + * + * @param sheetname the name of the sheet to reorder + * @param pos the position that we want to insert the sheet into (0 based) + */ + + public void setSheetOrder(String sheetname, int pos ) { + + //remove the sheet that needs to be reordered and place it in the spot we want + workbook.setSheetOrder(sheetname, pos); + } + /** * set the sheet name.