• Change Default Insert Picture?

    Author
    Topic
    #470554

    I use scanned images a lot, inserting through the Insert | Picture | From Scanner or Camera route.
    I’d like to set this up so that by default, the image comes in as Behind Text, Don’t Move Object with Text.
    How do I do this?
    The macro recorder doesn’t seem to handle this.
    Thanks!

    Viewing 4 reply threads
    Author
    Replies
    • #1235964

      I’d like to set this up so that by default, the image comes in as Behind Text, Don’t Move Object with Text.

      What is the code you have so far? It’s easier to add a line or two than start from scratch.

    • #1235968

      No code at all, I fear.
      JRR

    • #1236213

      and the Format Painter tool doesn’t work, either, on inserted pictures.
      JRR

    • #1236349

      You could try this code:

      Code:
      Sub InsertScanPicSetWrapBehind()
         'WordBasic code from: [url]http://www.gmayor.com/scan_into_word_2007.htm[/url] - thanks to Terry Farrell
         Dim shp As Shape
         On Error Resume Next
         WordBasic.InsertImagerScan
         Set shp = ActiveDocument.InlineShapes(ActiveDocument.InlineShapes.Count).ConvertToShape
         With shp
            .WrapFormat.Type = wdWrapBehind
         End With
         Set shp = Nothing
      End Sub

      A few caveats:

        [*]Test this code first in a dummy or copy document.
        [*]Code assumes that your scanned pictures come in as an Inline Shapes by default. If they come in as Shapes (floating objects) by default instead, then this code won’t work, and we’d need to adjust it.
        [*]I couldn’t find a way to specify “Don’t Move Object With Text” via code, but it appears to be set to that by default, when you set the shape to Wrap Behind Text.

      Gary

    • #1236358

      You can set at least part of your requirements in the Tools, Options, Edit dialog.

      May the Forces of good computing be with you!

      RG

      PowerShell & VBA Rule!
      Computer Specs

    Viewing 4 reply threads
    Reply To: Change Default Insert Picture?

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: