Results 1 to 6 of 6
  1. #1
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    Hi

    We have our on template and the normal text starts about 2 inches in from the edge of the paper. Now, I need to add a textbox to the left of the current paragraph/table/whatever to indicate changes in the document (e.g. couple of rows added in a table - so we add new in flash textbox to the left the selected row). But, the problem seems to be that it doesn't always go to the left (especially when 1 or last paragraph selected on a page). It seems to jump around either on the previous page or below/midway through the selected paragraph. Most times it works fine. Perhaps there is a better way of achieving this.

    Any help - highly appreciated. Since the macro is not very large I have included it in the text - also unable to upload files from workplace. Hope this is OK.
    ----------------------------------------------------------
    ' Switch off screen updates
    Application.ScreenUpdating = False

    ' Insert a 'New in v' text box flash to the left of current selection
    Set myTBox = ActiveDocument.Shapes.AddTextbox(msoTextOrientatio nHorizontal, _
    InchesToPoints(-1), _
    InchesToPoints(-0#), _
    45#, _
    25, _
    Selection.Range)

    myTBox.TextFrame.MarginTop = InchesToPoints(0#)
    myTBox.TextFrame.MarginLeft = InchesToPoints(0#)
    myTBox.TextFrame.MarginRight = InchesToPoints(0#)
    myTBox.TextFrame.MarginBottom = InchesToPoints(0#)

    myTBox.TextFrame.TextRange.ParagraphFormat.Style = FLASHINFO
    myTBox.TextFrame.TextRange = "New in v"

    myTBox.Line.Visible = msoFalse
    myTBox.LockAnchor = False

    myTBox.WrapFormat.Type = 3
    myTBox.ZOrder msoBringInFrontOfText

    myTBox.Select

    Application.ScreenUpdating = True
    -------------------------------------------------------------------

    Thanks in advance.

    Robie
    Thanks.
    Robie

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    Can't you use Track Changes?

    Floating text boxes are notoriously hard to control - they will work fine much of the time, but as you have found, they sometimes jump to unexpected places.

  3. #3
    4 Star Lounger
    Join Date
    Jan 2002
    Location
    London, Gtr London, England
    Posts
    416
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    Yes & No.

    We are already using Track Changes but the powers that be require this facility & it is must. It works fine - 95% of the time but people only notice when it goes wrong [img]/forums/images/smilies/sad.gif[/img].

    Robie
    Thanks.
    Robie

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    I'm afraid you'll have to live with it then.

  5. #5
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Sydney, Australia, New South Wales, Australia
    Posts
    251
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    Have you got an example that you can post of it going wrong?
    Peter

  6. #6
    Bronze Lounger IanWilson's Avatar
    Join Date
    Dec 2000
    Location
    Bristol, United Kingdom
    Posts
    1,523
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Word 97/2000/XP/2003 (Textbox to the left of current paragraph)

    Sorry to come to this so late.

    We use text boxes (well frames in fact) in the left margin of training manuals for marginal references to other material etc. We insert them as autotext. You get one set up just as you want it the laborious way, then you save that as a bit of autotext, and you can get Word to produce another one like it every time. I even have toolbar button to insert one. The key to making sure that it stays with the paragraph it's meant to be adjacent to is to make sure that the "keep with next" attribute is set for the paragraph(s) in the text box / frame.

    Is that any help?

    Ian

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •