Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
250 views
in Technique[技术] by (71.8m points)

vba - Copy ever page with a given text to a new document

I have a document with 1800 pages that is broken in to sections (example: Office 23 Group 2; Office 23 Group 3; Office 24 Group 1) The office / group appears at the top of each page and there is a page break for every Office/Group so there are not any pages with more than one Office/group on the page.

I need to copy each of the sections into a new Document (named after the section: Office23Group2.docx)

Currently, I search for the group / office and select all the pages associated with that office / group combination. Then I run a macro that copies the selected text to a new file and I save the new file with the office / group name. Rinse and repeat. I am hoping there is a way to automate this process as it is very time consuming and I have to do it once a week. Any suggestions?

TIA, C

question from:https://stackoverflow.com/questions/65904176/copy-ever-page-with-a-given-text-to-a-new-document

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...