Thread: [Solved] Help with if then statements
View Single Post
 
Old 07-15-2015, 05:18 PM
macropod's Avatar
macropod macropod is offline Windows 7 64bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
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

Quote:
Originally Posted by brent chadwick View Post
I would like to add default text to the new form field. How do I do that?
You can do that by inserting after:
.FormFields.Add BmkRng, wdFieldFormTextInput
the line:
BmkRng.FormFields(1).TextInput.EditType wdRegularText, "My default text"
where "My default text" is whatever you want for the default.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote