![]() |
|
![]() |
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I need to replace all letters (but not numbers and not spaces, and not commas, and not dots) in a Word file to 'x' letters, but I want the formating and numbers and punctuation marks to be preserved. How can I do it? I tried using wildcard *, but then there was a wall of continuous xxxxxxxxx without any spaces and also the formatting was lost. The purpose of this is to show how many pages of text there are in the file without revealing that text and without losing the format, so that the number of pages remain correct. Also the dates present in the text should be preserved. |
#2
|
|||
|
|||
![]()
Unless you are using a fixed width font that process is unlikely to work.
Replacing wide letters, such as w or m, or narrow letters, such as i, with x will alter the overall length of the text, resulting in the document being repaginated with the possible result that it will have fewer pages. For detailed help on using wildcards in Word find see https://wordmvp.com/FAQs/General/UsingWildcards.htm |
#3
|
||||
|
||||
![]()
Replacing existing content with strings of x will surely mess up the document layout - for the simple reason that, unless you're using a fixed width font, the x strings are unlikely to be the same overall width as the strings they replace. For what you want, see the Redact a Word Document 'Sticky' thread at the top of the Word VBA forum: https://www.msofficeforums.com/word-...-document.html
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
change footnote numbers to letters | doctorduncan | Word | 2 | 09-30-2023 02:08 AM |
![]() |
Sasha AD | Word | 5 | 12-03-2019 06:42 AM |
Prefixing heading numbers with custom letters, varying by section, in Microsoft Word? | JoelMarcey | Word | 0 | 07-23-2011 08:51 AM |
![]() |
tanababa | Word | 1 | 04-28-2011 01:35 AM |
mailmerge with letters of a different numbers of pages | roel1972 | Mail Merge | 0 | 02-21-2011 11:45 AM |