vba工具

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

posted @ 2016-07-19 21:26  小水阿哥  阅读(175)  评论(0编辑  收藏  举报