Solved

VBA to Print Multiline Textbox - Word 2007

Posted on 2009-04-09
7
950 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
A few years ago I was very much a beginner at VBA, and that very much remains the case today.  I'll do my best to explain things as I go in the hope that other beginners can follow.  If you just want to check out a tool that creates a Select Case fu…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

735 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