繼上次文件內容完成
在最後又被新問題卡住
再次請求先進們支援
word vba
頁尾名稱
No. abc-AKB48G-3 3/7/2022 同一行中間為固定位置顯示日期
No. abc-AKB48G-11 紅字為版本可能有雙位數
MID(A2,FIND("-",A2)+1,FIND("-",A2,FIND("-",A2)+1)-FIND("-",A2)-1)
有找到找出中間的方式 但此方式為excel適用,卻無法在word上提取出來,
打算將akb48g與 後面1~2碼數字再+1當作儲存檔名 3+1

預計儲存檔名 abc4-AKB48g.docx
Sub 巨集1()
Dim RANGE As Long
If ActiveWindow.View.SplitSpecial <> wdPaneNone Then
ActiveWindow.Panes(2).Close
End If
If ActiveWindow.ActivePane.View.Type = wdNormalView Or ActiveWindow. _
ActivePane.View.Type = wdOutlineView Then
ActiveWindow.ActivePane.View.Type = wdPrintView
End If
ActiveWindow.ActivePane.View.SeekView = wdSeekPrimaryFooter
Selection.EndKey unit:=wdLine, Extend:=wdExtend
Selection.RANGE.Copy
Documents.Add.Content.Paste
目前進度為把頁尾複製出來擷取想要字串再回主檔案當檔名存檔
求解麻煩各位先進協助指點方向
感謝您