by Allen Wyatt
(last updated February 21, 2008)
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:
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:
Sub PasteGraphic() ' ' PasteGraphic Macro ' Macro recorded 2/8/2002 by Allen L. Wyatt ' Selection.Paste End Sub
Sub PasteGraphic() ' ' PasteGraphic Macro ' Macro recorded 2/8/2002 by Allen L. Wyatt ' Selection.PasteSpecial Placement:=wdInLine End Sub
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
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.
Create Custom Apps with VBA! Discover how to extend the capabilities of Office 2013 (Word, Excel, PowerPoint, Outlook, and Access) with VBA programming, using it for writing macros, automating Office applications, and creating custom applications. Check out Mastering VBA for Office 2013 today!
When you record a macro, Word very literally records what you do. This includes filling in various settings in dialog boxes. ...Discover More
A VBA macro that will erase all of the information in your array.Discover More
One of the math functions you can use in your macros is the Int function. It provides a way for you to derive an integer ...Discover More
FREE SERVICE: Get tips like this every week in WordTips, a free productivity newsletter. Enter your address and click "Subscribe."
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.