Thread: [Solved] Format text automatically
View Single Post
 
Old 04-25-2013, 03:07 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Quote:
Originally Posted by dexter30 View Post
Donīt understand though why the script inserts several blank lines in the beginning of the file.
None of your previous posts indicated there was anything in the file before the content of interest, so I didn't code for that. What you have there really should have the spacing controlled by paragraph formatting, not by the insertion of empty paragraphs. The same applies to the spacing between the paragraphs in area you want the macro to modify.
Quote:
Also, in the last 'Nš [0-9]{1;8}' the paragraph turned to 'Multiple' (menu Format/Paragraph/Between Lines) where it should be 'Single'.
That has nothing to do with the macro changing any paragraph formatting. Rather, it's because your document's last paragraph already has that formatting and your content's last paragraph ends up being the document's last paragraph...
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote