#1
|
|||
|
|||
Document Separation
Hi,
I need a macro for page splitting based on the page no’s enter in the dialog box, I had searched on many forums and I got macro but there was some problem with the macro. In a document am having table’s and paragraph data while splitting the document with these macro table also get splitting by default, my purpose is if we enter page no’s document has to be split based on the text data and tables should not spited. Suppose am entre page 25 and in page no 25 table is presented and continuation was on page 26 and it should not get separated by the macro either it has to give a some message like “Table continuation” or else split the document after the continuation of that table or split only at the text data. Your help is highly appreciated. |
#2
|
||||
|
||||
There are no pages in a Word document. Documents are made up of several layers, a bit like a pile of transparencies that go to make up the whole. The main body text is a complete block of text that flows between the current margins. This is why your attempts to split the document by page are running into so much difficulty. If however this is a document created by mail merge - see https://www.gmayor.com/MergeAndSplit.htm
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
See:
The thing is, you need something other than a simple page number to mark the point at which you want a break. If you could insert named bookmarks that could be the point potentially use those bookmarks. The second article suggest using heading styles to signify logical divisions in a document. If those were used in your document, they could be used to mark division points. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Code on a button to attach a document to my Word Auto fill document is not working on a Mac | reynoldsrjr | Word | 0 | 03-30-2020 04:00 AM |
USB disconnected while document was live; saved document now corrupt. How do I retrieve document? | MaxB | Word | 2 | 07-01-2019 04:42 PM |
Single step Word Styles from Source Document through entire Destination document? | xbliss | Word | 6 | 08-27-2016 09:36 PM |
Adding a link into a word document that when pressed, takes user to a page within the same document | yan89 | Word | 1 | 04-29-2016 01:54 PM |
Unwanted separation of bars, and actual bar not coming upto current date | ketanco | Project | 1 | 06-27-2012 09:20 AM |