lparameter plShape, pcItem, pcText this.SetStatus( "Filling in " + pcItem ) local llFound, loShape, loRange, loRetVal llFound = .f. loRetVal = .null. if ( plShape ) * look for it in the shapes with this.moContract for each loShape in .Shapes if ( loShape.TextFrame.HasText = -1 ) loRange = loShape.TextFrame.TextRange with loRange.Find .Text = pcItem .Replacement.Text = alltrim( pcText ) .Forward = .t. .Execute( ,,,,,,,,,, wdReplaceOne ) llFound = .Found endwith endif if ( llFound ) * skip doing rest of shapes if ( empty( pcText ) ) * going to do formattedtext inserts loRetVal = loRange loRetVal.Collapse( wdCollapseEnd ) endif exit endif endfor endwith else * look for it in the document body loRange = this.moContract.Content with loRange.Find .Text = pcItem .Replacement.Text = alltrim( pcText ) .Forward = .t. .Execute( ,,,,,,,,,, wdReplaceOne ) llFound = .Found endwith if ( empty( pcText ) ) * going to do formattedtext inserts loRange.Collapse( wdCollapseEnd ) loRetVal = loRange endif endif if ( ! llFound and ! this.mlWarned ) Confirm( "Can not find the item:" + pcItem, MB_OK + MB_ICONEXCLAMATION ) ErrorLog( "Missing:" + pcItem ) this.mlWarned = .t. endif return loRetVal>I found out the problem, my Word entries from VFP are to shape boxes: