Im am using Word VBA to create a form field and then insert a value into that field.
Problem is I need to change the data type of the field I have created.
Code:
ActiveDocument.Bookmarks("Loan_Amount").Select
ActiveDocument.FormFields.Add FFHere, wdFieldFormTextInput
ActiveDocument.FormFields("Text1").Result = Value
Had a hunt around but can't find anything on the topic. It would also be nice to change the name of the bookmark of the field (calls itself "Text1" by default).
Like this?
And here is an example which inserts a Text field but changes it to Date Field
Other type that you can change it to are
wdCurrentDateText
wdCalculationText
wdCurrentTimeText
wdDateText
wdNumberText
(This is what your question requested for)NOTE: I am assuming that
FFHere
is a valid range