메인 컨텐츠로 가기

문서를 단어로 여러 문서로 분할하는 방법은 무엇입니까?

여러 문서로 분할해야하는 방대한 워드 문서가있는 경우 몇 분 동안이 튜토리얼을 읽으십시오. 이 튜토리얼은 문서를 여러 문서로 분할하는 두 가지 방법을 보여줍니다.


VBA를 사용하여 지정된 구분 기호로 Word 문서 분할

문서를 여러 문서로 수동으로 분할하는 대신이 방법은 Word에서 지정된 구분 기호로 Word 문서를 분할하는 VBA를 도입합니다. 다음과 같이하십시오 :

1. 프레스 Alt + F11 키를 함께 눌러 Microsoft Visual Basic for Application 창을 엽니 다.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭 한 다음 VBA 코드 아래에 새 여는 모듈 창에 붙여 넣습니다.

VBA : 구분 기호로 Word 문서를 여러 문서로 분할

Sub SplitNotes(delim As String, strFilename As String)
Dim doc As Document
Dim arrNotes
Dim I As Long
Dim X As Long
Dim Response As Integer
arrNotes = Split(ActiveDocument.Range, delim)
Response = MsgBox("This will split the document into " & UBound(arrNotes) + 1 & " sections.Do you wish to proceed?", 4)
If Response = 7 Then Exit Sub
For I = LBound(arrNotes) To UBound(arrNotes)
If Trim(arrNotes(I)) <> "" Then
X = X + 1
Set doc = Documents.Add
doc.Range = arrNotes(I)
doc.SaveAs ThisDocument.Path & "\" & strFilename & Format(X, "000")
doc.Close True
End If
Next I
End Sub
Sub test()
'delimiter & filename
SplitNotes "///", "Notes "
End Sub

3. 그런 다음 달리기 버튼을 누르거나 F5 키를 눌러 VBA를 적용합니다.

4. 튀어 나오는 Microsoft Word 문서에서 예 버튼을 클릭하여 계속 진행하십시오.

참고 :
(1) 다음과 같은 구분 기호를 추가해야합니다. "///" 분리하려는 텍스트의 각 섹션 사이의 문서에 대한 하위 테스트에서. 또한 변경할 수 있습니다 "///" 필요를 충족시키기 위해 구분 기호에.
(2) 문서를 변경할 수 있습니다. "노트" 귀하의 필요에 맞게 하위 테스트에서.
(3) 분할 된 문서는 원본 파일과 동일한 위치에 저장됩니다.
(4) 원본 파일 끝에 구분 기호를 추가 할 필요가 없습니다. 그렇게하면 분할 후 빈 문서가 생성됩니다.

VBA를 사용하여 페이지별로 Word 문서 분할

다음은 Word에서 한 Word 문서를 여러 페이지로 빠르게 분할하는 데 도움이되는 또 다른 VBA입니다. 다음과 같이하십시오 :

1. 프레스 Alt + F11 키를 함께 눌러 Microsoft Visual Basic for Application 창을 엽니 다.

2. 딸깍 하는 소리 끼워 넣다 > 모듈을 클릭 한 다음 VBA 코드 아래에 새 여는 모듈 창에 붙여 넣습니다.

VBA : Word에서 문서를 페이지별로 여러 문서로 분할

Sub SplitIntoPages()
Dim docMultiple As Document
Dim docSingle As Document
Dim rngPage As Range
Dim iCurrentPage As Integer
Dim iPageCount As Integer
Dim strNewFileName As String
Application.ScreenUpdating = False 'Makes the code run faster and reduces screen _
flicker a bit.
Set docMultiple = ActiveDocument 'Work on the active document _
(the one currently containing the Selection)
Set rngPage = docMultiple.Range 'instantiate the range object
iCurrentPage = 1
'get the document's page count
iPageCount = docMultiple.Content.ComputeStatistics(wdStatisticPages)
Do Until iCurrentPage > iPageCount
If iCurrentPage = iPageCount Then
rngPage.End = ActiveDocument.Range.End 'last page (there won't be a next page)
Else
'Find the beginning of the next page
'Must use the Selection object. The Range.Goto method will not work on a page
Selection.GoTo wdGoToPage, wdGoToAbsolute, iCurrentPage + 1
'Set the end of the range to the point between the pages
rngPage.End = Selection.Start
End If
rngPage.Copy 'copy the page into the Windows clipboard
Set docSingle = Documents.Add 'create a new document
docSingle.Range.Paste 'paste the clipboard contents to the new document
'remove any manual page break to prevent a second blank
docSingle.Range.Find.Execute Findtext:="^m", ReplaceWith:=""
'build a new sequentially-numbered file name based on the original multi-paged file name and path
strNewFileName = Replace(docMultiple.FullName, ".doc", "_" & Right$("000" & iCurrentPage, 4) & ".doc")
docSingle.SaveAs strNewFileName 'save the new single-paged document
iCurrentPage = iCurrentPage + 1 'move to the next page
docSingle.Close 'close the new document
rngPage.Collapse wdCollapseEnd 'go to the next page
Loop 'go to the top of the do loop
Application.ScreenUpdating = True 'restore the screen updating
'Destroy the objects.
Set docMultiple = Nothing
Set docSingle = Nothing
Set rngPage = Nothing
End Sub 

3. 그런 다음 달리기 버튼을 누르거나 누르십시오. F5 키를 눌러 VBA를 적용합니다.

참고 : 분할 문서는 원본 파일과 같은 위치에 저장됩니다.


Word 용 Kutools를 사용하여 제목 / 페이지 / 섹션 나누기 / 페이지 나누기로 Word 문서 분할

Word 용 Kutools가 설치되어있는 경우 적용 할 수 있습니다. 스플릿 Word에서 필요에 따라 페이지, 제목, 구역 나누기 또는 페이지 나누기별로 하나의 문서를 여러 문서로 쉽게 분할하는 기능 ..

Word 용 Kutools 작업을 간소화하고 문서 처리 기술을 향상시키는 최고의 Word 추가 기능입니다. 무료로 사용해 보세요 60 일! 지금 사세요!

1.딸깍 하는 소리 쿠툴즈 플러스 > 스플릿 를 사용하려면 스플릿 기능.

2. 화면의 분할 창 열기에서 다음과 같이 할 수 있습니다.

(1) 분할 방법을 분할 기준 드롭 다운 목록.
이 기능은 아래 스크린 샷과 같이 제목 6, 페이지 나누기, 섹션 나누기, 페이지, 매 n 페이지 및 사용자 정의 페이지 범위의 1 가지 분할 방법을 지원합니다.

(2) 검색 단추  지정하다 분할 된 문서를 저장할 대상 폴더

(3) 새 문서 이름의 접두사로 키워드를 문서 접두사 상자.

팁 :
(1) 현재 문서 분할을 지정하면 n 페이지마다에서 번호를 지정해야합니다. n 페이지마다 상자;

(2) 현재 문서를 사용자 정의 페이지 범위로 분할하도록 지정하는 경우 이러한 사용자 정의 페이지 범위를 쉼표로 구분하여 입력해야합니다. 페이지 예를 들어 상자에 1, 3-5, 12를 입력합니다.

3. 클릭 Ok 버튼을 눌러 분할을 시작합니다.

그러면 현재 문서가 지정된 분할 방식으로 분할되고 새 문서가 대상 폴더에 대량으로 저장됩니다.

탭 브라우징 및 Firefox, Chrome, Internet Explore 10과 같은 여러 Word 문서 편집!

Firefox / Chrome / IE에서 여러 웹 페이지를보고 해당 탭을 쉽게 클릭하여 전환하는 데 익숙 할 수 있습니다. 여기에서 Office 탭은 유사한 처리를 지원하므로 하나의 Word 창에서 여러 Word 문서를 탐색하고 탭을 클릭하여 문서간에 쉽게 전환 할 수 있습니다. 전체 기능 무료 평가판을 보려면 클릭하십시오!
Firefox로 한 창에서 여러 단어 문서 검색


관련 기사 :


최고의 사무 생산성 도구

Word 용 Kutools - Over로 단어 경험을 향상시키세요 100 놀라운 기능!

🤖 Kutools AI 도우미: AI로 글쓰기를 변화시키세요 - 콘텐츠 생성  /  텍스트 다시 쓰기  /  문서 요약  /  정보 문의 문서 기반, 모두 Word 내에서

📘 문서 숙달: 페이지 분할  /  문서 병합  /  다양한 형식으로 선택 항목 내보내기(PDF/TXT/DOC/HTML...)  /  PDF로 일괄 변환  /  페이지를 이미지로 내보내기  /  한 번에 여러 파일 인쇄...

컨텐츠 편집: 일괄 찾기 및 바꾸기 여러 파일에 걸쳐  /  모든 사진 크기 조정  /  테이블 행과 열 바꾸기  /  표를 텍스트로 변환...

🧹 손쉬운 청소: 쓸어버리다 추가 공간  /  섹션 나누기  /  모든 헤더  /  텍스트 상자  /  하이퍼 링크  / 더 많은 제거 도구를 보려면 다음 페이지를 방문하세요. 그룹 제거...

광고 삽입물: 삽입 천 단위 구분 기호  /  확인란  /  라디오 버튼  /  QR 코드  /  바코드  /  대각선 표  /  방정식 캡션  /  이미지 캡션  /  테이블 캡션  /  여러 장의 사진  / 더 자세히 알아보세요. 그룹 삽입...

🔍 정밀한 선택: 핀포인트 특정 페이지  /  테이블  /  모양  /  제목 단락  / 탐색 기능 향상 배우기 기능 선택...

스타 강화: 어떤 위치로든 빠르게 이동  /  반복되는 텍스트 자동 삽입  /  문서 창 간을 원활하게 전환합니다.  /  11 변환 도구...

👉 이러한 기능을 사용해 보고 싶으신가요? Word 용 Kutools는 다음을 제공합니다. 60 일 무료 사용, 제한 없음! 🚀
 
Comments (45)
No ratings yet. Be the first to rate!
This comment was minimized by the moderator on the site
VBA: Split Document into Multiple Documents by Page in Word - in this when we run it, outcome comes in portrait layout only. If original doc is in landscape then full data of the original doc does not come in the pages breaked by this vba.. There must be seperate vba for portrait and landscape docs.
This comment was minimized by the moderator on the site
I use the "split"-function of "Kutools For Word 9.00" with "header 1" and it works for 48 documents and then it simply stops without any message, as if it wohl have been finished. But I have 700 "header 1" in a 2000 pages document!
Is it simply too much for the tool or is there any other reason?
This comment was minimized by the moderator on the site
your code add new blank page in every page
This comment was minimized by the moderator on the site
This worked fine up until yesterday with Office365, but now I constantly get a runtime error '4605' stating this command is not available. Sometimes at the first page, sometimes at the 3rd page...I can't make it past 3 pages anymore. It happens with line 28 above...

docSingle.Range.Paste 'paste the clipboard contents to the new document
This comment was minimized by the moderator on the site
I've got this error too - Did you get anywhere with it?


Thanks
This comment was minimized by the moderator on the site
yes...i have to run it on the local hard drive. if i run it on a network file or with RemotePC it. has something to do with the script having to wait too long in between commands and it errors out copy and pasting to the clipboard. hope that helps!!
This comment was minimized by the moderator on the site
I copied the document distribution macro 'Split Word Document By Specified Delimiter With VBA', but in the line of 'sub test', the software reads it as a new macro and there are two macros here.
This comment was minimized by the moderator on the site
The script saves a two pages document, the second is total blank.

How to solve this?
This comment was minimized by the moderator on the site
Hi Jorge,
The VBA script introduced splits document by the separator “///”, and you do not need to add delimiter to the end of the original file, if you do, there will be a blank document after splitting.
This comment was minimized by the moderator on the site
Hi kellytte, Could you please explain a little further? I copy and paste the VBA script under the "Split Word by Document with VBA" from above and after I run the process following the instructions above, I always have to manually delete a 2nd blank page on each of the new documents that were created. Are you saying there is something that needs to be removed from the VBA script that will cause this to stop?
This comment was minimized by the moderator on the site
The split works great for me but on page in the merge file turns into 1.5 pages - something with the page layout (+ additional empty page at the end). any ideas how to go around that?
This comment was minimized by the moderator on the site
The Split Word By Document with VBA worked for me, but it is adding a blank page at the end of each document. Is there a way around this?
This comment was minimized by the moderator on the site
I am working on this as well but have not found a way to do it besides manually.
This comment was minimized by the moderator on the site
Does not work at all for me. Goes through the motions but no documents are saved. Maybe because I am using .DOCX files?
This comment was minimized by the moderator on the site
After playing with this code for over an hour I discovered you have to save the document you mail merged then you can run the code on the saved document that has all the pages you need to split up. Hope this helps.
This comment was minimized by the moderator on the site
I always start with a newly-saved document. I found the split documents were actually saved somewhere (I forget; doesn't matter) they were text only - all the formatting had been dropped.
This comment was minimized by the moderator on the site
Maybe something to do with Windows 7 settings? Thoughts from anyone?
This comment was minimized by the moderator on the site
Mais comment garder une mise en page complexe (image de fond, marges, etc) ?
Great but how to keep the lay-out (background image, margins ?)
This comment was minimized by the moderator on the site
Can you split the document based on Heading 1 styles as your "delimiter".
This comment was minimized by the moderator on the site
Hi Andrew,
The VBA script can split the entire document by page. If you need to split by heading 1, we suggest to try Kutools for Word’s Split (Document) feature.
This comment was minimized by the moderator on the site
Downloaded fodler doesnt open at all. Waiting for a long time.
There are no comments posted here yet
Load More
Please leave your comments in English
Posting as Guest
×
Rate this post:
0   Characters
Suggested Locations