View Single Post
 
Old 02-24-2014, 04:08 AM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,369
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

You could use a macro like the following to convert them to images. I doubt they can be converted to HTML.
Code:
Sub Demo()
Dim sWdth As Single, Shp As Shape, Rng As Range, i As Long
With ActiveDocument
  For i = .OMaths.Count To 1 Step -1
    Set Rng = .OMaths(i).Range
    With Rng
      .Collapse wdCollapseEnd
      sWdth = .Information(wdHorizontalPositionRelativeToTextBoundary)
    End With
    Set Rng = .OMaths(i).Range
    With Rng
      sWdth = sWdth - .Information(wdHorizontalPositionRelativeToTextBoundary)
      .CopyAsPicture
      .Text = vbNullString
      .PasteSpecial DataType:=wdPasteEnhancedMetafile
      Set Shp = .ShapeRange(1)
      With Shp
        sWdth = (.Width - sWdth) / 2
        .PictureFormat.CropLeft = sWdth
        .PictureFormat.CropRight = sWdth
        .WrapFormat.Type = wdWrapTopBottom
        .LockAnchor = True
      End With
    End With
  Next
End With
End Sub
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote