Solved

How to not print the contents of a cell in Microsoft Word.

Posted on 2014-03-24
15
454 Views
Last Modified: 2014-03-26
I have a table for the user to fill in, i.e. name, address, City, State.  The preprinted forms all ready have the headers Name, Address, City and state all ready printed on them.

Is it possible to prevent the cells, that all ready appear on the preprinted form, from printing?

How do I do that?

Thanks
0
Comment
Question by:c7c4c7
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 5
  • 2
15 Comments
 
LVL 15

Expert Comment

by:DrTribos
ID: 39952228
You could apply a hidden text style to the cell contents prior to printing.  You might also be able to use fields to hide the text prior to printing.
0
 

Author Comment

by:c7c4c7
ID: 39952276
Would that require the person doing that each time the form is printed?  And how would I apply a "hidden text style" or "use fields to hide text"
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39952290
I don't really understand what what are trying to achieve.

Is it possible to prevent the cells, that all ready appear on the preprinted form, from printing?

If the form is "preprinted" that means it has been printed already - you could use whiteout.

Do you mean the from has been partially "pre-filled"?

If I understand your request the form has, for example the name filled out:

Name: Joe Smith
Address: 123 Smith St
City: Joeville
etc.

Then the user, Joe Smith?, prints out the from but you don't want the Name, Address, & City to be printed?  Do you want the these parts of the from to be blank so that the user has to fill them in again?
0
Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

 
LVL 50
ID: 39952305
@DrTribos, the way I understand the question is: The paper that is fed into the printer already has a form pre-printed on it. The labels like "Name" or "City" are printed already. The cells for the data are empty.

The challenge is to create a form that the user can fill in in Word. It needs to show labels while the user fills it in, otherwise they won't know which box is for "Name" and which is for "City".

@c7c4c7, instead of replicating the whole form in the Word document and then having to remove most of the form before it is printed, you could insert content controls. They can be found on the Developer Tab in the Controls section.

A text content control will show "Click here to enter text".  This text can be changed and customized to your needs. Then you can lay out the required content controls on the page. Form labels are not needed, since the content controls identify what data needs to be entered.
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39952328
Hi teylyn - reading the question again I think you are right, although it makes me wonder if it would be easier to simpy put blank paper through the printer...

I did not know it was possible to change the prompt text on a Content Control without VBA, I guess I shouldn't have been surprised to learn that going into design mode allowed the prompt to be changed.
0
 

Author Comment

by:c7c4c7
ID: 39955028
teylyn explanation of my problem is correct.

Blank paper is not an option, the form is printed in triplicate with contract speak on the back of each sheet.
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39955133
ahhh - so you are relying on putting paper into the printer with the correct orientation and then having the printer print your field data onto the form with enough spatial accuracy to fit into the area provided on the pre-printed form.

Are you familiar with userforms, and would you consider one of those for data entry?

A userform would require some VBA (i.e. macros) but then you can at least have a lot of control over the data.
0
 

Author Comment

by:c7c4c7
ID: 39955173
Not familiar with userforms, vba is not a problem
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39955176
OK - as per Teylyn's suggestion can you add some content controls to a document to map out where the information should go.  I'll send you a quick userform example (with instructions).
0
 
LVL 15

Accepted Solution

by:
DrTribos earned 250 total points
ID: 39955197
OK rough and ready - the coding is, erm..... but it will work

You will need to rename the file from UserFormExample.zip to <whatever>.dotm

EE does not allow upload of dotm files

You might need to enable macros using security settings and trusted locations (how to do has been covered to death on EE and the rest of the web).

To see what the VBA does press Alt + F11 to open the editor then look under UserForms and double click frmMyForm

To add content controls you may need to enable the developer tab.  R-Click on the ribbon and click customise.  Then tick developer.

Content controls are in the controls section, use the top left control

Have fun
UserFormExample.zip
0
 

Author Comment

by:c7c4c7
ID: 39956932
O.k. Thanks, I will play with this and let you know how it goes
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39957793
With the userform you can add labels above the textboxes so the user knows what to type.  You can also look at the underlying code by double clicking on the button.

The code is about as simple as it gets, not very elegant, but a good starting point to see what is happening.  The textboxes on the form are addressed by Name.  The content controls are addressed by index (i.e. the order they appear in the document).
0
 

Author Closing Comment

by:c7c4c7
ID: 39958099
Works perfect, thanks for the help
0
 
LVL 15

Expert Comment

by:DrTribos
ID: 39958101
No worries... glad you didn't have to break out the whiteout!

Tnx Teylyn for putting me on track :-)
0
 
LVL 50
ID: 39958184
@DrTribos, no worries here either. Glad you got it solved for c7c4c7.

The power of expert collaboration. Works even between Oz and NZ.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

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

If you work with Word a lot, you probably use styles. If you use styles a lot, you've probably balled your fist more often than not when working with the ribbon. In Word 2007/2010, one of the things that I find missing when using styles is a quic…
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…
The viewer will learn how to make their project stand out over others by learning how to change colors and shapes, add spaces, change directions, and add bullets to their charts.
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.

738 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