页面导航: 首页网络编程JavaScript应用技巧 → 正文内容 Apply an AutoFormat to an Excel Spreadsheet

Apply an AutoFormat to an Excel Spreadsheet

发布:dxy 字体:[增加 减小] 类型:转载
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”相关内容
·在谷歌中搜索关于“Apply an AutoFormat to an Excel Spreadsheet”相关内容

文章评论

共有 位脚本之家网友发表了评论我来说两句

同 类 文 章
最 近 更 新
热 点 排 行