Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   Delphi Excel-OLE: Makro-Code "worksheet[2].Move Before" -> Delph (https://www.delphipraxis.net/50693-excel-ole-makro-code-worksheet%5B2%5D-move-before-delph.html)

resolution 29. Jul 2005 17:33


Excel-OLE: Makro-Code "worksheet[2].Move Before" -
 
Hallo :)
Makro-Code ist zum Beispiel
Worksheets(S + 1).Move Before:=Worksheets(S)

wie 'übersetze' ich das "Move Before" nach Delphi? wg. dem Leerzeichen geht das so ja nicht..

thx + lg

shmia 29. Jul 2005 18:02

Re: Excel-OLE: Makro-Code "worksheet[2].Move Before&quo
 
Zitat:

Zitat von resolution
Makro-Code ist zum Beispiel
Worksheets(S + 1).Move Before:=Worksheets(S)

wie 'übersetze' ich das "Move Before" nach Delphi? wg. dem Leerzeichen geht das so ja nicht..

Before ist ein benamster Parameter und Move ist eine Funktion.
Also
Delphi-Quellcode:
var
   excelapp : OleVariant;
begin
   excelapp := .....
   excelapp.WorkSheets(S + 1).Move(Before:=excelapp.Worksheets(S));
end;


Alle Zeitangaben in WEZ +1. Es ist jetzt 12:31 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz