Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2011, 09:32 AM
GreenPolyps GreenPolyps is offline How do I Convert All Legacy Check Boxes to ActiveX? Windows 7 32bit How do I Convert All Legacy Check Boxes to ActiveX? Office 2010 32bit
Novice
How do I Convert All Legacy Check Boxes to ActiveX?
 
Join Date: Dec 2011
Posts: 1
GreenPolyps is on a distinguished road
Default How do I Convert All Legacy Check Boxes to ActiveX?

I receive around 10 word documents (97-2003 version) every day that I need to convert to HTML, but the check boxes won't show up in HTML because they are not ActiveX. Is there an easy way to convert all existing legacy checkboxes to ActiveX checkboxes? Even better would be if I could convert all legacy checkboxes to ActiveX for a whole batch of word documents.

I need an automatic way of doing this.



Thoughts?
Reply With Quote
  #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: 21,956
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
Reply

Thread Tools
Display Modes


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 12:08 AM.


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