Solved

VBA to Print Multiline Textbox - Word 2007

Posted on 2009-04-09
7
941 Views
Last Modified: 2012-05-06
Hi,

I have multiple 'Microsoft Form 2.0' textbox's in a protected word template. I have set the multiline property to True. When I print the document I only get a print of the first several lines.

How do I set this up so that when it prints it prints all of the text in all of the textbox's and reformats so that it all fits on an A4 page(s) using VBA?

Please see an example file attached.

Any help appreciated!
example.docx
0
Comment
Question by:bhattar
  • 3
  • 2
7 Comments
 
LVL 37

Accepted Solution

by:
Joanne M. Orzech earned 500 total points
ID: 24170296
Can you use the plain text or rich text content control instead?  Seems to work perfectly for what you're looking for.



2007-TextBox-controls.gif
0
 

Author Comment

by:bhattar
ID: 24175667
Hi JOrzech,

I would like to protect the document and make it into a word template. I cannot seem to do it using the plain text or rich text content controls.

Any more ideas?

Regards..
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 24185050
Use a text formfield?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 19

Expert Comment

by:dlc110161
ID: 24188700
You should be able to protect the form for Filling in Formfields with Content Controls.

Dawn Bleuel
Word MVP
Protected-Content-Controls.docx
0
 

Author Closing Comment

by:bhattar
ID: 31568417
JOrzech, After playing with the controls as you suggested I have managed to create the form as required. Thank you very much for all of your help. Kind Regards..
0
 
LVL 37

Expert Comment

by:Joanne M. Orzech
ID: 24219611
Wonderful!  Thank you.  I'm glad I was able to help you figure it out.

Joanne Orzech
Word MVP
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I'm writing to share my clumsy experience in using this elegant tool so you can avoid every stupid mistake I made. (I leave it to the authorities to decide if this deserves a place in the Knowledge archives.)  Now that I am on the other side of my l…
Microsoft Word is a program we have all encountered at some point, but very few of us have dug deep into its full scope of features, let alone customized it to suit our needs. Luckily making the ribbon (aka toolbar, first introduced in Word 2007) wo…
This video shows the viewer how to set up and create Footnotes in their document. Click on the References tab: Select "Insert Footnote": Type in desired text:
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now