int h = 0;
if(b)h=Boundsheet.HIDDEN;
mysheet.setHidden(h);
if(mysheet.getSheetNum() == 0){
try{
Boundsheet s2 = mybook.getWorkSheetByNumber(mysheet.getSheetNum()+1);
mybook.setFirstVisibleSheet(s2);
}catch(WorkSheetNotFoundException e){;}
}
if(mysheet.selected()){
try{ // set the next sheet selected...
int x = 1;
Boundsheet s2 = mybook.getWorkSheetByNumber(mysheet.getSheetNum()+x);
while(s2.getHidden())s2 = mybook.getWorkSheetByNumber(mysheet.getSheetNum()+x++);
s2.setSelected(true);
}catch(WorkSheetNotFoundException e){;}
}
}