View Single Post
 
Old 07-01-2021, 08:10 AM
gusstamax gusstamax is offline Windows 10 Office 2019
Novice
 
Join Date: Jul 2021
Posts: 1
gusstamax is on a distinguished road
Default Removing multiple spaces

Hello,

I have several documents that has double linespaces that I want to remove with VBA. I have tried to google for solutions without success.

Basically my documents looks like this:
"Line of text...


Line of text..."


Note that it is a space after every sentence break, i.e.
Line of text
(space here)
(space here)
Line of text


An ideal solution would both remove the extra space in every sentence and remove the "double spacing" --> so it looks something like this.
"Line of text



Line of text"

The problem occurs on every page, and every document has different number of pages. I wonder if anyone has solved a similair solution before? I have attached an word document if it better visualize my problem.

Any help would be appreciated!
Attached Files
File Type: docx msofficeforums_spaces.docx (11.9 KB, 18 views)
Reply With Quote