title: wdWrapBehind in word (2003) vba
body: <p>I am having problems getting my pictures to wrap behind the text in Word 2003 using VBA. I can use all the other wrapping options fine but when I try and use wdWrapBehind I get the following error.</p>
  
  <p>"Compile Error: Variable not defined"</p>
  
  <p>I have had a hunt around through google with no luck.</p>
  
  <p>Code:</p>
  
  <pre><code>      Dim shape1 As shape
        Dim imagePath1 As String
  
        imagePath1 = "C:\image.jpg"
  
        Set shape1 = ActiveDocument.Shapes.AddPicture(imagePath1)
  
        With shape1
          .ScaleHeight 1, msoTrue
          .ScaleWidth 1, msoCTrue
          .LockAspectRatio = msoTrue
          .WrapFormat.Type = wdWrapBehind
          .RelativeHorizontalPosition = wdRelativeHorizontalPositionPage
          .RelativeVerticalPosition = wdRelativeVerticalPositionPage
          .Left = InchesToPoints(0.433)
          .Top = InchesToPoints(0.413)
        End With
  </code></pre>
  
  <p>Any help appreacited!</p>
  
  <p>Cheers,
  Michael</p>