Supress blank text

O

Olduke

Using Word 2003 with Windows XP
My VBA skills - Fair

I have a template which I inherited. It is a monthly activity report for
off site workers. The template contains 6 areas for acitivity reporting.
Each area has 25 entry possiblities.

In the first area - Meeetings - off site employees are required to report
the meetings they attended. There is MeetingDate1, followed by
MeetingReport1 all the way down to MeetingDate25 and MeetingReport25.

What I would like to do is find some way of supressing any of the Meeting
fields that are blank when the report prints. Right now, the report prints
over 5 pages but most of the time there may be only 10-15 lines of actual
text.
 
D

David Sisson

Using Word 2003 with Windows XP
My VBA skills - Fair

I have a template which I inherited.

I hope that means you can add some code to it.

You could hide the text.

If ActiveDocument.FormFields("Report1").Result = "" Then
ActiveDocument.Sections(2).Range.Font.Hidden = True
End If

Then when you printout, only the visible will printout.

If you want to keep the original intact, just close without saving.
 
O

Olduke

Thank you David, I'll give it a try.
The template is designed to open as a document, so it should be OK
Glen
 

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