treeview control not a valid embedded object

G

Guest

Hello! I am developing a form using Microsoft Word's built-in form tools,
and I'd like to add expand/collapse capability to certain sections of the
form. In everything I've reviewed, it appears I want to open the Control
Toolbox, click on More Controls, and use the Microsoft TreeView Control,
version 6.0. But when my cursor is in place in the document and I select
that control, it gives me an error:
Error! Not a valid embedded object.
I even tried to save my form as a template file and then insert the
control...same error. I would really, really like to use this functionality,
but all online help is geared toward using Visual Studio, not Word/VBA.
Thanks for any assistance you can give or for pointing me to a good resource
to research on my own.
 
J

Jezebel

a) you can't put a TreeView control into the body of a document, and
b) even if you could, it wouldn't enable you to expand/collapse sections of
the document.
 
G

Guest

I think I just figured out the answer to when you WOULD be able to use this
control. I was doing a lot of research on this and I see that people are
using this control in MS Word userforms (which must be completely different
from the built-in Word Forms toolbar I'm using).
Thanks again for your help.
- KC
--
Please remember to indicate when the post is answered so others can benefit
from it later.


KC Rippstein said:
Thank you very much. I've seen your name all over the posts regarding this
topic, so I was hoping to hear from you. I am going to attempt to implement
Greg Maxey's solution that you and another poster alluded to in a Sept 2006
post (http://gregmaxey.mvps.org/Toggle_Data_Display.htm).

Just out of curiosity, what purpose would you use the TreeView control for
if not for subsections of a document?
 
G

Guest

Thank you very much. I've seen your name all over the posts regarding this
topic, so I was hoping to hear from you. I am going to attempt to implement
Greg Maxey's solution that you and another poster alluded to in a Sept 2006
post (http://gregmaxey.mvps.org/Toggle_Data_Display.htm).

Just out of curiosity, what purpose would you use the TreeView control for
if not for subsections of a document?

--
Please remember to indicate when the post is answered so others can benefit
from it later.


Jezebel said:
a) you can't put a TreeView control into the body of a document, and
b) even if you could, it wouldn't enable you to expand/collapse sections of
the document.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top