码迷,mamicode.com
首页 > 编程语言 > 详细

vba工具

时间:2016-07-19 22:06:30      阅读:285      评论:0      收藏:0      [点我收藏+]

标签:

Sub test() Dim xlApp As Excel.Application Dim xlBook As Excel.Workbook

Set xlApp = New Excel.Application

Set xlBook = xlApp.Workbooks.Open("d:\test.xlsx")

Dim sheet As Excel.Worksheet

Set sheet = xlBook.Worksheets(1)

Dim ss As String

‘"a" ,_ For i = 1 To sheet.Range("A1").End(xlToRight).Column     Sheet2.Cells(i, 1) = """" & sheet.Cells(1, i) & """ " & "," & " _" Next End Sub

vba工具

标签:

原文地址:http://www.cnblogs.com/liqb/p/5686329.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!