![]() |
#2
|
||||
|
||||
![]()
Try:
Code:
Sub AddChkBox() With ActiveDocument .FormFields.Add Range:=.Range.Characters.Last, Type:=wdFieldFormCheckBox .Characters.Last.Previous.Cut With .Content.Find .ClearFormatting .Text = "[_]{1,}" With .Replacement .ClearFormatting .Text = "^c" End With .Format = False .Forward = True .Wrap = wdFindContinue .MatchWildcards = True .Execute Replace:=wdReplaceAll End With End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Tags |
checkbox, form field |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
tinfanide | Word | 2 | 10-06-2012 11:04 PM |
![]() |
smohap | Word | 1 | 06-19-2011 09:24 PM |
![]() |
theresamille699 | Excel | 3 | 04-12-2011 08:08 PM |
Ticking Checkboxes | screid | Word | 1 | 06-08-2010 02:04 AM |
Manipulating checkboxes in XML | Ivo | Word | 0 | 12-06-2005 09:04 AM |