Manipulate ActiveX controls on Form

G

George Seese

XP, Windows 2000
In a template form, I click on Command Button.
It appears on the form (wherever the blinking cursor is).
I can resize the Button but cannot move it.

How do you move the Command Button as it's done in a UserForm?
Thanks,
George
 
G

George Seese

Turn on Show Paragraphs, because the ActiveX controls seem to be restricted
to Paragraph markers.
You can move the controls by left clicking the center and moving. I'm not
sure if it's my configuration or what, but I cannot move the controls as
freely as in a Userform. And if there are several in the area, moving one
may affect the others.
However, it seems to be sufficient. In fact it automatically aligns them,
ie. several Option buttons.

Now my question is - can code manipulate controls such as listboxes on a
form?

George
 
C

Cindy Meister -WordMVP-

Hi George,
XP, Windows 2000
In a template form, I click on Command Button.
It appears on the form (wherever the blinking cursor is).
I can resize the Button but cannot move it.

How do you move the Command Button as it's done in a UserForm?
Note that you do have to be in DESIGN mode (button on the
Controls toolbar).

All these ActiveX controls are regarded by Word as graphical
objects. Word can store graphical object in one of two ways:
inline with the text, or with text wrap formatting ("floating").
In Word 2000 and later, ActiveX controls are inserted by default
in-line with the text.

You need to use the graphics commands (Format/Object) in order
to apply text wrap formatting that will allow you to position
the control anywhere on the page, as you can in a Userform.

Note, though, that controls formatted in this manner will not
behave "correctly" if you intend to protect the document as a
form. On the whole, it's better to leave them in-line with the
text, if you can.

An alternative is to insert them into a FRAME (from the Forms
toolbar). The frame will provide text wrap, but Word still
regards it as being part of the text, rather than the document
layer.

Cindy Meister
INTER-Solutions, Switzerland
http://homepage.swissonline.ch/cindymeister (last update Jan 24
2003)
http://www.mvps.org/word

This reply is posted in the Newsgroup; please post any follow
question or reply in the newsgroup and not by e-mail :)
 
G

George Seese

Cindy,
Thanks for shedding some light on this.

What I was trying to do is "Please Fill Out This Form, Part 5" by Dian
Chapman.
http://www.computorcompanion.com/LPMArticle.asp?ID=136
Two Command Buttons are at the top of the form.
I don't know how to get buttons to look like Dian's. And she has not replied
to my email.

When I insert a frame and then insert a button, the button takes over the
whole frame; I no longer can access the frame. If I cut the button, the
frame disappears!

As Elmo says "Where can I learn more about this?"
Is it in Word or VBA Help?
Where did you learn about "floating" and "in-inline" and "In Word 2000 and
later, ActiveX controls are inserted by default
in-line with the text."
Do VBA persons receive special information from Microsoft?

Thanks,
George
 

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