以下是我在word嘗試寫入的vba 結果都是執行失敗
Ps以下程式碼會開啟我寫的excel活頁簿
-------------------------------------------------------------------------------
Dim ex As Object
Set ex = CreateObject("excel.application")
'wo = ThisDocument.Path & "\住址標籤套印格式(開啟自動完成).xlsm"
Set wo = ex.Workbooks.Open(ThisDocument.Path & "\住址標籤套印格式(開啟自動完成).xlsm")
' "='[B.xls]Sheet1'!$A$1"
' With wo = Sheet1
'Dim ex As Object
'Set ex = CreateObject("Excel.Sheet")
'End With