Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #2  
Old 12-20-2011, 05:11 PM
macropod's Avatar
macropod macropod is offline How do I Convert All Legacy Check Boxes to ActiveX? Windows 7 64bit How do I Convert All Legacy Check Boxes to ActiveX? Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I Convert All Legacy Check Boxes to ActiveX? Check Boxes jellyrolls Office 4 07-15-2011 08:07 PM
Table - Check Boxes - Create Select All lajohn1963 Word Tables 2 09-25-2010 11:18 AM
Can't open .pst legacy files RetiredEngineer Outlook 1 11-14-2009 01:06 PM
Problem with Developer Form -- Check Boxes and Text Boxes PCC Word 1 05-16-2009 05:22 AM
How do I Convert All Legacy Check Boxes to ActiveX? check boxes in outlook 2007 kim Outlook 3 02-17-2009 10:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 11:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft