Apply an AutoFormat to an Excel Spreadsheet
2018-10-12 14:07
741 查看
Script Code
Const xpRangeAutoFormatList2 = 11
Set objExcel = CreateObject("Excel.Application")
objExcel.Visible = True
Set objWorkbook = objExcel.Workbooks.Add()
Set objWorksheet = objWorkbook.Worksheets(1)
k = 1
For i = 1 to 10
For j = 1 to 10
objWorksheet.Cells(i,j) = k
k = k + 1
Next
Next
Set objRange = objWorksheet.UsedRange
objRange.AutoFormat(xpRangeAutoFormatList2)
相关文章推荐
- Apply an AutoFormat to an Excel Spreadsheet
- Simple VBScript program to extract data from all worksheets in an Excel spreadsheet
- Simple VBScript program to extract data from all worksheets in an Excel spreadsheet
- Creating an AutoCAD table linked to an Excel spreadsheet using .NET
- Updating an AutoCAD table linked to an Excel spreadsheet using .NET
- CSpreadSheet - A Class to Read and Write to Excel and Text Delimited Spreadsheet
- How to create an Excel sheet or chart in VC?
- How to create an Excel sheet or chart in VC?
- HOWTO:How to make the WebGrid work like an Excel sheet
- Accessing an Excel Spreadsheet in ASP.NET (VB and
- Read a Text File with VBA in Excel, and Write the Text to a Spreadsheet
- CSpreadSheet - A Class to Read and Write to Excel and Text Delimited Spreadsheet
- excel操作之Add Data to a Spreadsheet Cell
- Updating an Excel spreadsheet from a linked AutoCAD table using .NET
- excel操作之Add Data to a Spreadsheet Cell
- 在excel中创建sheet的索引 Use index sheets to quickly navigate in an Excel workbook
- ASP.NET: Dispaly data from an Excel Spreadsheet
- transform a DataSet to spreadsheet XML for Excel
- ASP.NET: Dispaly data from an Excel Spreadsheet
- jscript之Read an Excel Spreadsheet