Ir al contenido


Foto

[TRUCO DELPHI] Escribir una Formula en una Celda de Excel.


  • Por favor identifícate para responder
No hay respuestas en este tema

#1 sir.dev.a.lot

sir.dev.a.lot

    Advanced Member

  • Miembros
  • PipPipPip
  • 545 mensajes
  • Location127.0.0.1

Escrito 09 diciembre 2016 - 03:17

[TRUCO DELPHI] Escribir una Formula en una Celda de Excel.


delphi
  1. Function ExcelSetCellFormula(
  2. Excel : Variant;
  3. FormulaString : ShortString;
  4. RowNum, ColNum: Integer): Boolean;
  5. Begin
  6. Result := True;
  7. Try
  8. Excel.
  9. ActiveSheet.
  10. Cells[RowNum, ColNum].
  11. Formula := FormulaString;
  12. Except
  13. Result := False;
  14. End;
  15. End;

Saludos!


  • 1




IP.Board spam blocked by CleanTalk.