WD97: Macro to Disable Float Over Text Property

Last reviewed: July 31, 1997
Article ID: Q157773
The information in this article applies to:
  • Microsoft Word 97 for Windows

SUMMARY

This article provides a sample Visual Basic macro that opens the InsertPicture dialog box with the Float Over Text check box deselected. If you name the macro InsertPicture Word runs your macro instead of opening the default Insert Picture dialog box. (To locate this dialog box, point to Picture on the Insert menu, and then click From File.)

MORE INFORMATION

WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR OWN RISK. Microsoft provides this macro code "as is" without warranty of any kind, either express or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.

The following macro example uses the name, InsertPicture. You can use another name and assign the macro 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 this macro is run.

   Sub InsertPicture()
      set mydialog = Dialogs(wdDialogInsertPicture)
      mydialog.floatovertext = False
      mydialog.Show
   End Sub


KBCategory: kbmacro
KBSubcategory: kbmacroexample
Additional query words: 97 8.0 word8 word97
Keywords : kbmacro kbualink97
Version : 97
Platform : WINDOWS
Hardware : x86


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 31, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.