I need someone to write a VBA script that will break a Microsoft Word (2016) document down into multiple smaller documents based on an array by copying out the pages and putting them into a new document (with the orientation staying the same). The documents will need to be saved in the same directory as the primary file that is being broken down. The example array is:
pages(0,0) = "9"
pages(0,1) = "14"
pages(0,2) = "[url removed, login to view]"
pages(1,0) = "15"
pages(1,1) = "22"
pages(1,2) = "[url removed, login to view]"
pages(2,0) = "23"
pages(2,1) = "33"
pages(2,2) = "[url removed, login to view]"
The first element is the first page, the second is the last page, the third element is the name the file should be called, in the real file there is around 110 files that need to be made. I have a Microsoft Word document (I have MS Office 2016). The document is over 3000 pages long with various orientations - some pages are landscape and others are portrait. All of the pages are their own section with a graphic in the header of the document. All of the pages measure 8.5"x11" or 11"x8.5". All pages will need to stay the same orientation that they were in the original document. I will need the script as a text file as I can't run files with macros in them from the web. This is a micro project with a budget of $10-$30 USD.