|
|
|
|
|
- Other functions linked to Excel
New in version 2025 The following functions are used to manage XLS files:
| | xlsAddWorksheet | Adds or inserts a new worksheet into an Excel document. | xlsClose | Closes an XLS file. | xlsColumnTitle | Retrieves the title of a column found in an XLS file. | xlsColumnType | Returns the type of data entered in a column of an XLS file. | xlsCoordinatesToName | Retrieves the name of a cell, XLS worksheet or Spreadsheet control according to its coordinates. | xlsCurrentWorksheet | Used to find out and modify the current worksheet in an XLS file. | xlsData | Retrieves the content of a cell found in an XLS file. | xlsDeleteWorksheet | Deletes a worksheet from the Excel document. | xlsGetMerge | Determines if a cell is merged with other cells and gets the merged cell range. | xlsMergeCell | Merges the specified cells in an Excel document. | xlsMsgError | Returns the caption of the last error caused by an XLS function. | xlsNameToCoordinates | Returns the coordinates of a cell, XLS file or spreadsheet control according to its name. | xlsNbColumn | Returns the number of columns found in a worksheet of an XLS file. | xlsNbColumns | xlsNbColumns is kept for backward compatibility only. | xlsNbRow | Returns the number of rows found in an XLS file. | xlsNbRows | xlsNbRows is kept for backward compatibility only. | xlsNbWorksheet | Returns the number of worksheets found in an XLS file. | xlsOpen | Opens an Excel file (xls or xlsx files). | xlsRecalculateAll | Recalculates all formulas in an Excel (XLSX) document. | xlsSave | Saves an XLS document. | xlsUnmergeCell | Unmerges a range of cells. | xlsVersion | Returns the Excel version that was used to save the file. |
Other functions linked to Excel | | AAFDisable | Disables the export of Table control content or content selection to Excel or to OpenOffice Calc (depending on the software installed on the user's computer). | AAFExecute | Exports the content of Table control or the selection performed in the Table control to Excel or to OpenOffice Calc (depending on the software installed in the user computer). | HImportXLS | Imports an XLS file into an HFSQL Classic or Client/Server data file. This data file must have been defined in the data model editor, or declared with HDeclare, HDeclareExternal or HDescribeFile). | LooperToExcel | Creates an Excel file with data from a Looper control (based on a data file or populated programmatically). | TableToExcel | Creates an Excel file with the data from a Table or TreeView Table control (based on a data file or populated programmatically). |
Related Examples:
|
Unit examples (WINDEV): The Excel functions
[ + ] Using the functions for importing/exporting a WINDEV table to/from Excel and Word. This is automatically performed by the WLanguage functions. The following topics are presented in this example: 1/ How to export the content of a table to Excel or Word 2/ How to import the content of an Excel file to a WINDEV table A button is used to import the entire data from a Excel file into an application table. A second button is used to export the table content to the source Excel file in order to apply the modifications. The table can also be exported in table format into Word.
|
|
Unit examples (WINDEV): XLS Type
[ + ] Handling the xlsDocument, xlsColumn, xlsRow and xlsCell variables. The purpose of this example is to explain how these types of variables can be easily handled.
|
|
Training (WINDEV): WD Controlling Excel
[ + ] This example explains how to control Excel via OLE Automation. All the features included in Excel can be emulated. This example requires Excel 97 or later. Summary of the example supplied with WINDEV: Controlling a spreadsheet as Excel may be useful to allow the user to keep his own habits from the software powered by WINDEV. This process is very easy via the "CExcel" class supplied with WINDEV. The main features of Excel can be directly called (chart, inserting objects, sorts, ...). How do I control Excel via OLE Automation? An OLE Automation contains methods and properties. This allows you to emulate it directly in WLanguage. For example, to display the selected cell in bold: MyOLEAutomationObject>>Selection>>Font>>Bold = True
|
|
Training (WINDEV): WD Controlling Spreadsheets
[ + ] This example explains how to control OpenOffice Calc and Excel with a generic code. It gives you the ability to create, open and handle the workbooks opened in OpenOfficeCalc and Excel from a WINDEV application. You can position on a worksheet, select cells, read and modify their content, save the workbook and close it. The use of an abstract class (CSpreadsheet) enables you to implement a unique code, regardless of the spreadsheet installed on the user computer
|
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|