甲乙合作寫一篇文章,新建一個Word文檔,不過處于修訂狀態(tài),如何能夠把兩個人的內容合并到同一個文檔里呢? 來看看甲乙各自寫在哪里了?甲負責撰寫大綱1的內容,或在公眾號界面輸入合并直接獲取下載地址),總不能手動輸吧?其實這個小編也想到了。
復制以下代碼到VBA編輯器,前提是文章大綱的格式一致),點擊運行即可,請打開文件選項自定義功能區(qū),例如手動編號變自動編號。
如圖所示, Count:=1 Loop If Selection Like *[、..] Then Selection.Delete myRange.Select Next Selection.ParagraphFormat.TabStops.ClearAll ActiveDocument.DefaultTabStop = CentimetersToPoints(0.19) With Selection.ParagraphFormat .LeftIndent = CentimetersToPoints(0.74) .FirstLineIndent = CentimetersToPoints(-0.74) End With End Sub