De: "gerard" Objet: Re: suite Excel XP et DDE souce Date : dimanche 23 septembre 2001 23:31 puisqu'il y a des amateurs: les déclarations: c'est surtout la dernière unité la + importante la procédure: '' then begin b:=b+1; ce_:='A'+inttostr(a+c); OleApplication.Range[ce_].Formula:= tfille(ActiveMDIChild).grille.cells[0,a]; ce_:='b'+inttostr(a+c); if tfille(ActiveMDIChild).grille.cells[1,a]<>'' then OleApplication.Range[ce_].Formula:= strtofloat(tfille(ActiveMDIChild).grille.cells[1,a]); ce_:='c'+inttostr(a+c); if tfille(ActiveMDIChild).grille.cells[2,a]<>'' then OleApplication.Range[ce_].Formula:= strtofloat(tfille(ActiveMDIChild).grille.cells[2,a]); if (tfille(ActiveMDIChild).grille.cells[1,a]<>'')and (tfille(ActiveMDIChild).grille.cells[2,a]<>'') then begin t_:=strtofloat(tfille(ActiveMDIChild).grille.cells[1,a])* strtofloat(tfille(ActiveMDIChild).grille.cells[2,a]); ce_:='d'+inttostr(a+c); OleApplication.Range[ce_].Formula:= t_; t2:=t2+t_; end; end; end; OleApplication.Range['A:A'].ColumnWidth := 60; OleApplication.Range['b:b'].ColumnWidth := 15; OleApplication.Range['c:c'].ColumnWidth := 15; OleApplication.Range['d:d'].ColumnWidth := 15; ce_:='a'+inttostr(b+c+3); OleApplication.Range[ce_].Formula:= 'Total HT :'; ce_:='c'+inttostr(b+c+3)+':c'+inttostr(b+c+6); OleApplication.Range[ce_].NumberFormat := '#,##0.00 [$F-40C]'; ce_:='c'+inttostr(b+c+3); OleApplication.Range[ce_].Formula:=t2; ce_:='a'+inttostr(b+c+4); OleApplication.Range[ce_].Formula:='TVA: '+floattostr(tfille(ActiveMDIChild).gettau) ; ce_:='c'+inttostr(b+c+4); OleApplication.Range[ce_].Formula:= (t2*tfille(ActiveMDIChild).gettau)/100; ce_:='a'+inttostr(b+c+5); OleApplication.Range[ce_].Formula:= 'Total TTC'; ce_:='c'+inttostr(b+c+5); OleApplication.Range[ce_].Formula:= t2*((tfille(ActiveMDIChild).gettau+100)/100); ce_:='a'+inttostr(b+c+7); OleApplication.Range[ce_].Formula:= tfille(ActiveMDIChild).getmes; OleApplication.Range['d:d'].NumberFormat := '#,##0.00 [$F-40C]'; end;> gerard