Question : VBA to rename an MS Word dropdown formfield.

What is the basic code required to rename a Word Dropdown FormField once the field has been selected? I've tried to use both the following codes, but they do not work. What am I doing incorrectly?

   With ActiveDocument.Bookmarks
        .Add Range:=Selection.Range, Name:="NewDropdownName"
    End With

    With Selection.FormFields(1)
        .Name = "NewDropdownName"
    End With

Thanks....

Answer : VBA to rename an MS Word dropdown formfield.

Yes, if it's too big or there is something confidential. My email address is in my profile
Random Solutions  
 
programming4us programming4us