Not near close enough to what I suggested. The thing that you want to
appear in a field will need to be saved as an autotext entry. However, if
it is a graphic of some sort, you probably can't get it to be displayed in a
formfield which is what the code is designed to do and you may need to
create a bookmark in your document into the .Range of which the item can be
inserted. That however will require that code be included to unprotect and
then re-protect the form.
I think that you probably should be considering the use of a userform rather
than a protected document with formfields.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Jean-Guy...
>
[quoted text clipped - 41 lines]
>> double text and do SHIFT-F9 to toggle the field codes,
>> write back with what you see.
Doug,
I am using a userform...I'm inserting fields, protecting the document and
saving it as a .dot. ...maybe I'm not explaining it correctly.
I opened a new document.
Put in a drop down box that has a list of items I want the user to choose
from.
Put in a reference field to that drop down box.
Changed the font of the reference field to a bar code font (not image).
Set up other 'fill in' fields.
Protected the document for forms.
Saved as a .dot
Now, when I open the document, the fill-in fields kick off, asking the user
for various information. They finish entering the information and the form
updates, displaying the information correctly (the reference field that uses
the bar code font for some reason scans with a non-printing square at the
end, but our guys say that's ok).
I have the reference fields all working correctly and life is good, except
for one thing. I need a way to ask for a 2 digit code before any of the fill
in fields are launched...or after the fields are completed. I currently
house the 2 digit code in the drop down box...so the user has to select that
last. The only problem is when the user selects it in a userform, the only
way to update the associated bar code reference field is to set the drop down
box to 'calculate on exit'...and that makes ALL the fields ask for info. I
need this field to limit to 2 characters and only specific combinations
(otherwise when the bar code reference field is scanned, it will return an
invalid code and the scanner will stop).
So what I'm asking is how do I do one of two things:
1. Get the drop down field to update the reference field (or any text field
for that matter) after selecting a value but NOT making the rest of the 'fill
in' fields launch. I immediately thought of a drop down because I can limit
the entries the user can return.
2. Get an Input box to somehow automatically launch (either before or
immediately after the 'fill in' fields) but limit it to just 2 character
combinations that I can validate.
From what I understand, you can limit the data in an input box by either the
format of the box or by a vb check of the resulting data.
> Not near close enough to what I suggested. The thing that you want to
> appear in a field will need to be saved as an autotext entry. However, if
[quoted text clipped - 52 lines]
> >> double text and do SHIFT-F9 to toggle the field codes,
> >> write back with what you see.
Doug Robbins - Word MVP - 09 Feb 2007 22:34 GMT
Use Text formfields instead of fill-in fields.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> Doug,
>
[quoted text clipped - 118 lines]
>> >> double text and do SHIFT-F9 to toggle the field codes,
>> >> write back with what you see.