The information in this article applies to:
SYMPTOMS
In Microsoft Word 97, when you insert a picture or an object, by default,
the picture or object is inserted as floating object. That is, the Float
Over Text check box is always enabled.
Q170564 WD97: Pictures and Objects Inserted as Inline by Default in SR-1 WORKAROUNDMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft support professionals can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web: http://www.microsoft.com/support/supportnet/refguide/If you name the following example Visual Basic for Applications macros "InsertPicture" and "InsertObject", Word will run these macros instead of opening the default dialog box when you click From File (On the Insert Picture menu) or when you click Object on the Insert menu. You can use another name and assign the macro(s) to a toolbar button or menu if you want to have access both to Word's built-in dialog box and the one displayed when these macros are run. Macro workaround for the Insert Picture Dialog Box
Macro workaround for the Insert Object Dialog Box
For more information about adding a command to a menu, click Contents
And Index on the Help menu, click the Index tab in Word Help, type the
following text
menusand then double-click the selected text to go to the "Add a command or other item to a menu" topic. If you are unable to find the information you need, ask the Office Assistant. MORE INFORMATIONFor additional information, please see the following article in the Microsoft Knowledge Base: Q181058 OFF98: How to Run Sample Code from Knowledge Base Articles REFERENCESFor more information about getting help with Visual Basic for Applications, please see the following article in the Microsoft Knowledge Base: Q163435 VBA: Programming Resources for Visual Basic for Applications Additional query words: vb vba vbe
Keywords : kbualink97 kbdta kbdtacode kbmacroexample word97 |
Last Reviewed: August 17, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |