Einzelnen Beitrag anzeigen

schuetze09

Registriert seit: 3. Mär 2004
113 Beiträge
 
Delphi 2005 Architect
 
#1

Ungültiger Variant-Operation?

  Alt 16. Apr 2004, 15:29
Hallo zusammen,

ich erhalte eine Fehlermeldung zu diesem Abschnitt.

"Ungültig Variant-Operation"

Was ist hier falsch?

Delphi-Quellcode:
  if ConnectToExcel = True
    then begin
           ExcelApp.WorkBooks.Open(LoadFromIniFile('FILE', 'Neu'));
           ExcelApp.DisplayAlerts := False;
           Cursor:=crHourGlass;
           Application.ProcessMessages;
           for i:=15 to 43
           do begin
                if ExcelApp.Range['B'+IntToStr(i), 'B'+IntToStr(i)].Value = FormatDateTime('dd.mm.yyyy', now)
                  then begin
                         ExcelApp.Range['G'+IntToStr(i), 'G'+IntToStr(i)].Value :=FormatDateTime('hh:nn', Time);
                         ExcelApp.Save;
                         ExcelApp.Quit;
                         ExcelApp := Unassigned;
                       end;
              end;
           Cursor:=crDefault;
         end
    else exit;
MfG
schuetze09
  Mit Zitat antworten Zitat