Instead of creating a "blank line" by inserting an empty paragraph, format your body text with Space Before or your heading style with Space After.
-- Suzanne S. Barnhill Microsoft MVP (Word) Words into Type Fairhope, Alabama USA Word MVP FAQ site: http://word.mvps.org Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.
"satya" <satya.mahesh[ at ]gmail.com> wrote in message news:1141767558.845314.290530[ at ]z34g2000cwc.googlegroups.com...
[Quoted Text] > Hi Steve, > > Thank you for replying. The requirement has changed a little. I want a > macro which "eliminates blank lines in export > (between headings and when a heading is empty)". For e.g: > > Heading1 > > Heading2 > > Heading3 > > This is text under Heading 3 > > Output should be: > > Heading1 > Heading2 > Heading3 > > This is text under Heading 3 > > Since heading heading 3 has content I want one blank space before the > content otherwise there should not be a blank. I did write one macro > which deletes blank lines. What it is doing is displaying the results > as follows: > > Heading1 > Heading2 > Heading3 > This is text under Heading 3 > > In order to solve this I inserted one dummy field(Ctl + F9) before the > paragraph under heading 3,hid that field and ran my macro so it worked. > However, I want it to dynamically recognise that there is text and > insert a blank line.Any ideas as to how it could be done? Appreciate if > anyone could provide me with a solution to this problem. > > Thanks & Regards, > satya >
|