CREATE(EXCLAPP); ExclWorkbook := ExclApp.Workbooks.OPEN('C:\schnittstelle.xls'); //ExclApp.ActiveWorkbook.Sheets.Select(1); Exclworksheet := ExclApp.ActiveSheet; ExclWorksheet.Select(1); ExcelZeile := '2'; ExclWorksheet.Range('C' + ExcelZeile).Value := '000001'; ExcelZeile := '3'; ExclWorksheet.Range('C' + ExcelZeile).Value := FORMAT(TODAY); ExcelZeile := '4'; ExclWorksheet.Range('C' + ExcelZeile).Value := 'xxxxxxx'; ExcelZeile := '5'; ExclWorksheet.Range('C' + ExcelZeile).Value := ''; ExcelZeile := '6'; ExclWorksheet.Range('C' + ExcelZeile).Value := 'xxxxxxx'; ExcelZeile := '7'; ExclWorksheet.Range('C' + ExcelZeile).Value := 'xxxxx'; ExcelZeile := '8'; ExclWorksheet.Range('C' + ExcelZeile).Value := 'xxxxxxxxxx'; ExcelZeile := '9'; ExclWorksheet.Range('C' + ExcelZeile).Value := '123123123'; ExclWorksheet.Select(2); ExcelZeile := '3'; ExclWorksheet.Range('C' + ExcelZeile).Value := 'test'; ExclApp.Visible := TRUE;[/b]
Comments
To Delete: SheetNumber - integer
I hope taht helps
Oleg
So, maybe it's something like:
Hope this helps ... I did not test it
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
IT workS!!!! :-)
For these People who have the Same Problems here Are the Code:
Explain:
First the report open the exiting Excel File, then it looks for the Worksheet called 'Kopfdaten'. Next I fill these cells which want to get the Information :-).
Atfer That I Called the next Worksheet named 'Debitorstammdaten'.
And so one...
Really nice these Procedure....
THX
MArtin
[-o<
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog