L
LEU
I have hundreds of old documents that were created with am old template that
has missing bookmarks. There are 2 TextForm form fields, 2 Drop-Down form
fields and 2 CheckBox form fields. I have created a new template with
userforms. When I open an old document in our network, I save it to my C
drive. Then in a new document I open my userform and run this macro (Created
with help from Greg Maxey):
Private Sub CmdPaste1_Click()
Dim DocA As Document
Dim oFF As FormFields
Set DocA = Documents.Open("c:\Temp.doc")
Set oFF = ActiveDocument.FormFields
Me.Text3.Value = oFF("Text55").Result
Me.cm1.Value = oFF("DropDown1").Result
‘and so on
DocA.Close
Kill "c:\Temp.doc"
Set DocA = Nothing
Set oFF = Nothing
End Sub
Is there a way to give the missing TextForm, Drop-Down and CheckBox form
fields a temporary bookmark so I can copy them into my userform?
has missing bookmarks. There are 2 TextForm form fields, 2 Drop-Down form
fields and 2 CheckBox form fields. I have created a new template with
userforms. When I open an old document in our network, I save it to my C
drive. Then in a new document I open my userform and run this macro (Created
with help from Greg Maxey):
Private Sub CmdPaste1_Click()
Dim DocA As Document
Dim oFF As FormFields
Set DocA = Documents.Open("c:\Temp.doc")
Set oFF = ActiveDocument.FormFields
Me.Text3.Value = oFF("Text55").Result
Me.cm1.Value = oFF("DropDown1").Result
‘and so on
DocA.Close
Kill "c:\Temp.doc"
Set DocA = Nothing
Set oFF = Nothing
End Sub
Is there a way to give the missing TextForm, Drop-Down and CheckBox form
fields a temporary bookmark so I can copy them into my userform?