View Single Post
  #6   Report Post  
Posted to microsoft.public.word.docmanagement
Jay Freedman Jay Freedman is offline
external usenet poster
 
Posts: 9,854
Default Drop-down list created in 2007 AND older versions of Word

Ahem. You may think you explained this complication previously, but I reviewed
the thread and that was not mentioned.

There is a way to "make it work", but it's going to be a lot more complicated
than what we've discussed before.

It also isn't going to be helpful to thrash about, applying things that just
sound like they might have something to do with it when in fact they have
nothing to do with it. :-)

Let's review a bit:

- You can't use content controls, because they're available only for Word 2007
and can't be saved in Word 97-2003 format documents. You must use legacy
controls, either form fields in a protected form or ActiveX controls with
macros. You've indicated that you have trouble with macros, so the only choice
left is form fields.

- This new information says that you're trying to insert a table containing the
form field into the middle of a document. You cannot insert _anything_ either
manually or with a macro into a document while it's protected. The document must
be unprotected until after the table is inserted, and _then_ the document can be
protected to make the form field work.

Do other parts of the document have to be edited after the table is inserted?
That can be done, but it introduces yet another wrinkle. You would have to
insert a section break (NOT a page break) before and after the table, and then
protect only the section containing the table.

Given the templates and document to start with, I could probably set this up in
a half hour or so. But there is no way I can explain it here, especially being
uncertain of the background you have in forms and macro programming.

It might help if you post the code of the macro you already have; you may just
need a few more lines added to it.


On Tue, 19 Aug 2008 14:53:00 -0700, USEN wrote:

Hi Jay,

Thanks for your replies. While the protection works to enable the drop-down
list to appear, it presents another problem. Like I explained previously,
this particular template consists of a very small form that is called to the
current document by a macro that is part of another template. What the macro
does is to insert a page break in the current document at the location of the
cursor, then calls up this 2nd template (which you now know is a small table
& includes this drop-down list). The macro copies this small table (ctrl+A;
ctrl+C), closes the 2nd document, and then pastes the table at the top of the
newly inserted page of the 1st document (ctrl+V). With this protection on,
it won't allow the document to be copied for some reason. I tried choosing
"set as read only" instead of "filling in forms", but that once again
resulted in the listbox not appearing.

Is there ANY way I can get this to work? It works beautifully in 2007.

Thanks!

"Jay Freedman" wrote:

I know I should never assume, but I did assume that you were familiar with
protected forms in earlier versions. The key here is "protected" -- the template
(and thus any document based on it) must be "protected for forms" in order to
make the form fields work.

There is a Protect Document button further to the right on the Developer ribbon.
Click that to open the Protect Document task pane. Check the box for "Allow only
this type of editing" and choose "Filling in Forms" in the dropdown below it.
Then click the Start Enforcing Protection button.

What you may not realize if you haven't done this before is that you cannot edit
anything else in the document while protection is turned on -- you won't be able
to select anywhere in the document except in the form fields. That's the real
meaning of "protected".

On Mon, 18 Aug 2008 21:39:01 -0700, USEN wrote:

Hi Jay,

OK...I did originally use the 1st button, so I tried it again...this time
using the Legacy form field. In addition to one line that just says "click
here to choose", at present, there are only 2 other items that need to go
into the drop-down list. I successfully added all 3 lines then clicked OK.
The first items "click here to choose" shows up, but there isn't any other
choices. There isn't even an arrow giving access to the drop-down list.
What am I doing wrong? I ignored the "Run macro on Entry and Exit"
buttons...is a macro required? I'd rather not have to worry with another
macro unless it's absolutely necessary because this particular template is
already being called from another template by a macro. The one macro is
already causing enough problems due to the different Word versions; I really
hate to add more to the fire.



"Jay Freedman" wrote:

On Mon, 18 Aug 2008 16:11:04 -0700, USEN wrote:

Hi Everyone,

I've created a drop-down list in 2007, but it won't convert to older
versions of Word. I know that drop-down lists could be created in older Word
versions from the Form Field Options button on the Forms toolbar; therefore,
surely there must be a way to get it to convert?

I'd greatly appreciate anyone's suggestion.

Thanks,

If you used the dropdown list button at the left end of the second row in the
Controls group, you have one of the new "content controls". There is no
equivalent to this type of control in the earlier versions.

To get the same kind of dropdown form field (for protected forms) as in earlier
versions, which can be transported back to those versions, you have to click the
Legacy Tools button (fourth from the left in the second row) and click the
dropdown button in the Legacy Forms part of the menu.


--
Regards,
Jay Freedman
Microsoft Word MVP FAQ: http://word.mvps.org
Email cannot be acknowledged; please post all follow-ups to the newsgroup so all may benefit.