15. August 2011 15:34
16. August 2011 08:55
//Globale Vereinbarungen
//Name DataType Subtype Length
//Appl Automation 'Microsoft Excel 9.0 Object Library'.Application
//WBs Automation 'Microsoft Excel 9.0 Object Library'.Workbooks
//WB Automation 'Microsoft Excel 9.0 Object Library'.Workbook
//WS Automation 'Microsoft Excel 9.0 Object Library'.Worksheet
//R Automation 'Microsoft Excel 9.0 Object Library'.Range
//C Automation 'Microsoft Excel 9.0 Object Library'.Comment
//Kommentar Text 250
CREATE(Appl);
Appl.VISIBLE := TRUE;
WBs := Appl.Workbooks;
WB := WBs.Open('C:/testen/testcomment'); //Arbeitsmappe
WS := WB.ActiveSheet;
R := WS.Range('A1'); //Zelle mit auszulesenden Kommentar
C := R.Comment;
Kommentar := C.Text;
Appl.Quit;
MESSAGE('C=%1',Kommentar);
17. August 2011 09:42
17. August 2011 10:26
17. August 2011 10:28
if ISCLEAR(C) then
Kommentar := C.text;
17. August 2011 10:53
17. August 2011 11:32
if not ISCLEAR(C) then
Kommentar := C.text;