View Single Post
 
Old 01-05-2013, 10:12 AM
sumjoh sumjoh is offline Windows 7 32bit Office 2007
Novice
 
Join Date: Jan 2013
Posts: 1
sumjoh is on a distinguished road
Post Convert equation objects to inline objects

Hi, I'm using the following macro to convert floating equation objects that appear as display equations (not run on with text) to inline objects

Code:
Sub ConvertToInline()
Dim i As Integer
For i = ActiveDocument.Shapes.Count To 1 Step -1
  Select Case ActiveDocument.Shapes(i).Type
    Case msoEmbeddedOLEObject, msoLinkedOLEObject, msoLinkedPicture, msoOLEControlObject, msoPicture, _
      wdInlineShapePicture, wdInlineShapeLinkedPicture: ActiveDocument.Shapes(i).ConvertToInlineShape
  End Select
Next i
End Sub
The macro seems to work fine, but after conversion the text that precedes some of the equations are run on at the end of the equations, which is not what I want. I need the equations to remain on separate lines by themselves (i.e. as display equations).

Can someone help with this?

Last edited by macropod; 01-29-2013 at 08:26 PM. Reason: Added code tags & formatting
Reply With Quote