* a double-value in the cell else it inserts a formula in the cell
*/
public static void insertIntoCell(
int CellX, int CellY, String theValue, XSpreadsheet TT1, String flag) {
XCell oCell = null;
try {
oCell = TT1.getCellByPosition(CellX, CellY);
} catch (com.sun.star.lang.IndexOutOfBoundsException ex) {
System.out.println("Could not get Cell");
}
if (flag.equals("V")) {oCell.setValue((new Float(theValue)).floatValue());}
else {oCell.setFormula(theValue);}
} // end of insertIntoCell