How to Paste Non-Floating Pictures with a Macro

by Allen Wyatt
(last updated June 26, 2018)

Subscriber Jos Wessels wrote about a problem he was having with pasting pictures into a Word document. Since he pastes a lot of them, particularly into tables, he is interested in having them pasted inline instead of as floating pictures.

The behavior being described indicates that Word 97 is being used. By default, Word 97 would paste pictures as "float over" rather than "inline." Microsoft has since changed this behavior, as Word 2000 and Word 2002 both paste pictures inline by default. Microsoft even provided a Knowledge Base article that covers this very topic:

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q163808

The article includes a macro-based workaround. There is a simpler solution, however, that may work for most people's needs. You can record your own macro to do your placements. If you do so, however, you will need to do just a bit of editing. When you paste pictures Word does not allow you to go back and modify the graphic, within the macro recorder, to change whether the graphic is inline or floating. This behavior exists in not only Word 97, but also later versions of Word. Who knows why; the reasoning is not apparent since you can modify graphic attributes within VBA, just not in the macro recorder itself.

To create your own quick-and-dirty macro, follow these general steps:

  1. Copy a graphic to the clipboard.
  2. Turn on the macro recorder.
  3. Paste the graphic.
  4. Turn off the macro recorder.
  5. Use the VBA Editor to display the macro you just recorded. It should appear similar to the following:
     Sub PasteGraphic()
     '
     ' PasteGraphic Macro
     ' Macro recorded 2/8/2002 by Allen L. Wyatt
     '
         Selection.Paste
     End Sub
  • Modify the macro so it appears as follows:
  •      Sub PasteGraphic()
         '
         ' PasteGraphic Macro
         ' Macro recorded 2/8/2002 by Allen L. Wyatt
         '
             Selection.PasteSpecial Placement:=wdInLine
         End Sub
    
  • Close the VBA Editor.
  • That's it. You now have a macro that will paste your graphic as inline.

    For related information, see the following topics and articles in WordTips Online Answers:

    Creating Macros: http://wtonline.vitalnews.com/wto213.html
    

    Note:

    If you would like to know how to use the macros described on this page (or on any other page on the WordTips sites), I've prepared a special page that includes helpful information. Click here to open that special page in a new browser tab.

    WordTips is your source for cost-effective Microsoft Word training. (Microsoft Word is the most popular word processing software in the world.) This tip (1600) applies to Microsoft Word 97.

    Author Bio

    Allen Wyatt

    With more than 50 non-fiction books and numerous magazine articles to his credit, Allen Wyatt is an internationally recognized author. He is president of Sharon Parq Associates, a computer and publishing services company. ...

    MORE FROM ALLEN

    Cleaning Up Text in a Macro

    Need to remove extraneous characters from a text string? VBA makes it easy through the CleanString method, described in ...

    Discover More

    Adding Graphics to a Header or Footer

    Excel makes it easy to add graphics to a header or footer. Here's the steps to make it happen.

    Discover More

    Displaying the Ruler

    The ubiquitous ruler appears at the top of every Word document. It is so common place, that you may forget that it is ...

    Discover More

    The First and Last Word on Word! Bestselling For Dummies author Dan Gookin puts his usual fun and friendly candor back to work to show you how to navigate Word 2013. Spend more time working and less time trying to figure it all out! Check out Word 2013 For Dummies today!

    More WordTips (menu)

    Inserting a Paragraph from within a Macro

    Macros are often used to process documents, resulting in changes of one manner or another. If you need your macro to add ...

    Discover More

    Determining a Random Value

    If you need to determine a random value in a macro, you can do so using the Rnd function. This tip presents the syntax ...

    Discover More

    Creating a Command List

    Want a list of all the commands available in Word? You can get one easily by following these steps.

    Discover More
    Subscribe

    FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

    View most recent newsletter.

    Comments

    If you would like to add an image to your comment (not an avatar, but an image to help in making the point of your comment), include the characters [{fig}] in your comment text. You’ll be prompted to upload your image when you submit the comment. Maximum image size is 6Mpixels. Images larger than 600px wide or 1000px tall will be reduced. Up to three images may be included in a comment. All images are subject to review. Commenting privileges may be curtailed if inappropriate images are posted.

    What is 5 - 2?

    There are currently no comments for this tip. (Be the first to leave your comment—just use the simple form above!)


    This Site

    Got a version of Word that uses the menu interface (Word 97, Word 2000, Word 2002, or Word 2003)? This site is for you! If you use a later version of Word, visit our WordTips site focusing on the ribbon interface.

    Newest Tips
    Subscribe

    FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."

    (Your e-mail address is not shared with anyone, ever.)

    View the most recent newsletter.