Академический Документы
Профессиональный Документы
Культура Документы
'=========================================================================
' Tutorial 05
'
' This code sample shows how to export data to Excel file (1) in VB6 and
' format the cells. The Excel file has multiple worksheets (2).
' The first sheet is filled with data (3) and the cells are formatted (4).
'=========================================================================
Click here to see the Excel file
VERSION 5.00
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 4590
ClientLeft = 2220
ClientTop = 1515
ClientWidth = 6885
LinkTopic = "Form1"
ScaleHeight = 4590
ScaleWidth = 6885
Begin VB.Label Label1
AutoSize = -1 'True
Height = 100
Left = 120
TabIndex = 0
Top = 120
Width = 100
End
End
Alignment.Initialize
Border.Initialize
DataType.Initialize
Color.Initialize
' Create an instance of the class that exports Excel files (1)
Set workbook = CreateObject("EasyXLS.ExcelDocument")
' Get the table of data for the first worksheet (3)
Set xlsFirstTable = workbook.easy_getSheetAt(0).easy_getExcelTable()