2 Replies Latest reply on Nov 17, 2010 6:48 AM by MrLeif

    Do I need to save to track cell.overflows?

    MrLeif Level 1

      I'm trying to find out if a cell has overset text, and then resize until the text is not overset anymore;

       

      Do I need to save the document every time I change the cell width to be able to check if the cell text is overset?

       

      if(myCell.overflows == true){

       

               var of = 0;

       

               myW = myCell.width;

       

              while(of == 0){


                myW = myW + 0.5;
                 myCell.width = myW; 
             myDoc.save(iddFilePath);  //is this neccesary??
          
               if(myCell.width>50){
                   //max width of cell=50
                   of=1;
               }
           if(myCell.overflows == false){
               of=1;
           }
        }           
      }