另外請問一下,以下為word的vba, 要怎麼改轉到excel後的字型及格式(格線,置中等....)
Sub test()
Dim xlWkApp As Object, xlWk As Object
Set xlWkApp = CreateObject("excel.application")
With xlWkApp
.Visible = True
Set xlWk = .Workbooks.Add
xlWk.Sheets(1).Range("a1") = ThisDocument.Tables(2).Cell(2, 6)
xlWk.Sheets(1).Range("a2") = ThisDocument.Tables(2).Cell(5, 6)
End With
End Sub