when converting .txt doc to Word

All of a sudden when converting my .txt files from my clients to Word, the Word print is very tiny and there's tiny little squares at the end of each line. This started happening yesterday. Already reloaded software and it's still there.

MacBook Air 13″, macOS 15.3

Posted on Mar 13, 2025 11:53 AM

Reply
18 replies
Sort By: 

Mar 13, 2025 12:42 PM in response to sallyshamby

I think you are using Word on macOS, but receiving text files from Windows users. That means that your text documents have multiple carriage-return/line-feed pairs, or a series of carriage-returns at the end of the lines that show ☐.


Paragraphs and line breaks in Word on Mac should end in just line feeds, so you may have success with this simple Find and Replace that removes all carriage return characters and leaves one line feed where that box appeared.



I just created some of the CR/LF text, opened it in Word, saw the ☐ character, and when I applied the above Replace all, the formatting remained the same, but that box disappeared.


Tested: Word 16.95 (Office 2021 for Mac Home & Business) on macOS Sequoia 15.3.2.

Reply

Mar 16, 2025 12:12 PM in response to sallyshamby

You can create a new Word Visual Basic (VBA) macro that does what the Find/Replace does by opening your text file in Word and then from the Tools menu > Macros > Macros… panel, select the ScrubCarriageReturns macro name and click Run. That immediately removes all carriage returns in the same manner as the Find/Replace sequence I showed earlier.


To create that Visual Basic Macro, click on the Developer menu item above the ribbon bar. That will show the following ribbon where you click Macros.



That will display this panel where you enter the Macro name exactly as I have entered it.



Click the Edit button, and below the Sub ScrubCarriageReturns() line, enter a blank line and then copy/paste the following VBA code below it.


With ActiveDocument.Range
With .Find
.Text = "^p"
.Replacement.Text = "^p"
.Execute Replace:=wdReplaceAll
End With
End With
End Sub


Now, visit the Word menu and click Save Normal. That saves this VBA macro in your Normal template so you can access it from the Tools menu with this and future documents. Close the Macro Editor window.


Then, for each document that you open that has those CR box symbols in it:


Word > Tools > Macro > Macros and select ScrubCarriageReturns and then click Run. All of the CR boxes will disappear from your open document.

Reply

Mar 13, 2025 12:40 PM in response to sallyshamby

sallyshamby wrote:

I don't have Microsoft email or account so they won't help me. And there is no live people on phone call, just sends you to website which I can't get in.


You don’t need a Microsoft email address.


You can sign up for a Microsoft account with whatever email you want to use.


https://techcommunity.microsoft.com/kb/gettingstarted/how-do-i-register/1058695


That’s the home for support of the particular third-party app you’re using.

Reply

Mar 14, 2025 10:44 AM in response to sallyshamby

When you first open the document in Word (e.g. 16.95), you will see this in the left panel (I am in dark mode, but it may not be in yours):



Just click the magnifying glass icon and that presents your Find/Replace panel that I showed in my previous post in this thread.

Reply

Mar 13, 2025 11:56 AM in response to sallyshamby

sallyshamby wrote:

All of a sudden when converting my .txt files from my clients to Word, the Word print is very tiny and there's tiny little squares at the end of each line. This started happening yesterday. Already reloaded software and it's still there.

Word is not an Apple product. You may get a faster response in the Microsoft Word Help Community.

Reply

Mar 13, 2025 12:42 PM in response to sallyshamby

sallyshamby wrote:

I don't have Microsoft email or account so they won't help me. And there is no live people on phone call, just sends you to website which I can't get in.

If you bought their software, you are their customer. Also, like Apple, Microsoft has user forums. I'm sure you'll find many knowledgeable people there.

Reply

Mar 16, 2025 6:54 AM in response to sallyshamby

I was wondering if you know how to make that permanent for me re the replace all since I have to convert documents daily. I've had to do that find and replace every time to get rid of the little squares. Thanks again for any help. And if I have to do that every time, of course I will and again so appreciative of everyone helping me get rid of those little squares.

Sally

Reply

Mar 17, 2025 1:37 PM in response to sallyshamby

Text documents created on Windows will have the carriage-return/line-feed characters and text documents created on macOS will correctly have just the line feeds for paragraph marks.


I preferred to give you options of fixing this in the document after opening in Word, though there are steps one can take in the macOS Terminal application to remove the carriage returns from any text document before opening in MS Word.

Reply

when converting .txt doc to Word

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.