Solved

VBA to Print Multiline Textbox - Word 2007

Posted on 2009-04-09
7
938 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
This video teaches the viewer how to align pictures around text while keeping the text properly aligned in the document.
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …

705 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

20 Experts available now in Live!

Get 1:1 Help Now