Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Apr 2003
    Location
    Kansas City, Missouri
    Posts
    66
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pasting inline differences between Word 97 & 2000 (Word 97 & 2000)

    Slowly, I am joining the 21st century as I am creating code for Word 97 and now Word 2000.

    I know that in Word 2000, the concept of "Float over text" has been accurately renamed to "Not in line with text."

    This affects my Word 97 code, though. In Word 97, I used:
    Selection.PasteSpecial Placement:=wdInLine

    in order to paste graphics and objects that were not inline when I copied or cut.

    But in Word 2000, when I copy an object that is not inline, the Paste Special does not convert it to an inline figure.

    What is the format of Word 2000 (and I presume subsequent versions) to convert a figure to inline as it is pasted?

    Kevin

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

    Re: Pasting inline differences between Word 97 & 2000 (Word 97 & 2000)

    You can use an extra instruction after pasting:
    Selection.ShapeRange.ConvertToInlineShape

  3. #3
    Plutonium Lounger
    Join Date
    Nov 2001
    Posts
    10,550
    Thanks
    0
    Thanked 7 Times in 7 Posts

    Re: Pasting inline differences between Word 97 & 2000 (Word 97 & 2000)

    Be careful if you use similar code in Word 2002, the default behaviour is now controlled by an option in Tools > Options. You will need to check Application.Options.PictureWrapType to decide what needs doing.

    StuartR

Posting Permissions

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