Solved

[Word] How to exclude sections when printing or PDF exporting

Posted on 2015-01-05
6
205 Views
Last Modified: 2015-01-08
Hi,

Using Word, I created a document where I have inserted sections delimited by the following tags <INTERNE EME></INTERNE EME>.

Is it possible to automate the exclusion of these sections when printing or exporting in PDF format?

Regards,
Richard
word-exclusion-automation-20150105.png
0
Comment
Question by:Richard Coffre
  • 3
  • 3
6 Comments
 
LVL 49

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40531508
Hi,

you could change the format of these sections as hidden

You can use Replace to do that
in FindWhat
 <INTERNE EME>*</INTERNE EME>

Using wildcards

in ReplaceWith
^&

With Format Font Hidden ticked


Regards
0
 
LVL 1

Author Comment

by:Richard Coffre
ID: 40537663
The search using wildcards does not work :-(
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 40537683
Have you ticked the box after having clicked More?
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 1

Author Comment

by:Richard Coffre
ID: 40537712
Yes.
I will investigate further to find out why it fails.

Thanks.
0
 
LVL 49

Expert Comment

by:Rgonzo1971
ID: 40537713
Could you send a dummy?
0
 
LVL 1

Author Closing Comment

by:Richard Coffre
ID: 40537716
The answer is good but it may need a little more information related to the Word versions because it does work properly with my configuration.
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

Suggested Solutions

Title # Comments Views Activity
Using tables with MS Word 16 68
help with flyer 3 68
Convert .PDF 6 61
Converting large .PDF files. 6 50
The Selection object is designed for user interaction. It has a Range property, so it can be used in most places that a Range object can. Recorded macros must use the Selection because they are simply copying what the user is doing. A Range prope…
This is written from a 'VBA for MS Word' perspective, but I am sure it applies to most other MS Office components where VBA is used.  One thing that really bugs me is slow code, ESPECIALLY when it's mine!  In programming there are so many ways to…
This video shows where to find the word count, how to display it, and what it breaks down to in Microsoft Word.
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

863 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

24 Experts available now in Live!

Get 1:1 Help Now