View Single Post
 
Old 12-20-2011, 05:11 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 21,963
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

Hi GreenPolyps,

That is possible, using a macro like:
Code:
Sub Demo()
Dim Rng As Range, i As Long
With ActiveDocument
  For i = .FormFields.Count To 1 Step -1
    With .FormFields(i)
      If .Type = wdFieldFormCheckBox Then
        Set Rng = .Range
        .Delete
        With Rng
          .InlineShapes.AddOLEControl ClassType:="Forms.CheckBox.1"
          .MoveEnd wdWord, 1
          .InlineShapes(1).Width = .InlineShapes(1).Height
        End With
      End If
    End With
  Next
End With
End Sub
Of course, you'd possibly want to do more than just replacing one with the other, but this should get you started.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote