StyleRef problem

Discussion in 'Word VBA Beginners' started by supersub15, Apr 18, 2011.

  1. supersub15

    supersub15 Guest

    We generate our MS-Word 2007 documentation from an app called Author-
    IT (AIT). For some reason ( can't figure out why), AIT places 2 hard
    returns after a style we use to display the release date, named
    "Byline"

    We are using a StyleRef field in the footer that references the
    "Byline" style, but since there are 2 paragraph marks after it, the
    StyleRef field is displaying nothing. I created a macro that strips
    the 2 extra paragraph marks during the publishing phase from AIT, but
    that is causing the weird effect of the "Byline" style getting gobbled
    up by a text box containing the company logo in another part of the
    page.

    Is there a way to make Word ignore the 2 extra paragraph marks and
    display the styleref in the footer or is there a better way to display
    the date other than using styleref? A macro maybe?

    Really not sure what my options are here.

    Thanks for the help
    Carlos
     
    supersub15, Apr 18, 2011
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Tony
    Replies:
    0
    Views:
    123
  2. Ches_NoSpam

    Problem with Word Document Variables

    Ches_NoSpam, Jul 10, 2003, in forum: Word VBA Beginners
    Replies:
    1
    Views:
    156
    Jonathan West
    Jul 10, 2003
  3. Patrick Finucane

    Can you help out with my formatting problem

    Patrick Finucane, Jul 27, 2003, in forum: Word VBA Beginners
    Replies:
    8
    Views:
    180
    Patrick Finucane
    Jul 30, 2003
  4. sean

    Problem with my find text routine.

    sean, Jul 30, 2003, in forum: Word VBA Beginners
    Replies:
    1
    Views:
    101
    Cindy Meister -WordMVP-
    Aug 5, 2003
  5. Louis

    Problem adding form fields

    Louis, Aug 2, 2003, in forum: Word VBA Beginners
    Replies:
    3
    Views:
    113
    Doug Robbins - Word MVP
    Aug 3, 2003
  6. Peter L Kessler

    Debug Problem

    Peter L Kessler, Aug 18, 2003, in forum: Word VBA Beginners
    Replies:
    1
    Views:
    105
    Cindy Meister -WordMVP-
    Aug 22, 2003
  7. StyleRef field problem in VBA

    , Apr 29, 2005, in forum: Word VBA Beginners
    Replies:
    3
    Views:
    589
    Howard Kaikow
    May 1, 2005
  8. יצחק ברט

    StyleRef in Headres

    יצחק ברט, Mar 27, 2006, in forum: Word VBA Beginners
    Replies:
    2
    Views:
    112
    Charles Kenyon
    Mar 28, 2006
Loading...