Text Box vs. textbox and multi-column layout...

D

drakaan

I have a document that is a template. On the template, I have created
three linked Text Boxes (which are not apperently visible in the Visual
Basic Editor), in order to have a flowed three-column layout for one
section of the document (a shipping label).

If I create a VB textbox control, I seem to be able to access it from
the Visual Basic Editor, but I don't see a way to do a flowed
three-column layout.

If I create the linked Word Text Boxes, I can do the right layout, but
cant figure out how to manipulate them programmatically (they don't
have a properties entry on the context menu, and don't show up in the
Visual Basic Editor).

Is there some combination of Word Text Boxes (which seem to be for
formatting only) and vba textbox objects that I can use to accomplish
programmatically adding text into a flowed three-column area in a Word
document, or is there another way to do what I'm attempting? Am I out
of luck?

Once I have a suitable object that meets the criteria of being
accessible from VB (an ASP page will be doing the editing) and
displaying the data in my desired layout, I'm golden, but the right way
to marry those two requirements together in a Word document has escaped
me so far.

Anybody have any ideas?
 
M

Mike Bassett

Hi,

are you using text boxes from the conrtrols toolbox or the forms toolbox?

Mike
 
D

drakaan

Trying both...that's what I'm saying. The one from the control toolbox
won't allow me to do a flowed 3-column layout, but is accessible from
the VBE, and the one from the forms toolbox will let me link three
boxed for the proper layout, but isn't accessible from the VBE.

I'm not sure how to get both VB accessibility *and* the layout I want.
I don't have to use textboxes, but I don't know how else to do what I
want.

If the page is like this:

+-------------------------------------------+
| |
| |
+----+----+----+ |
| | | | |
+----+----+----+----------------------------+

(8 1/2 x 14 landscape...three boxes at bottom left are a single, flowed
3-column section)

I'm not sure how else to accomplish the formatting and access that I
want, but I'm open to any and all suggestions.
 
M

Mike Bassett

Hi,

Formfields are accessible from VBA, they are addressed as:

Application.formfield("<bookmark name>").result

there are other properties for formfields but the value is returned in
..result. the bookmark name is set in the formfields properties, accessible
when you right-click on it when the form is unlocked.

Mike
 

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