Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-01-2021, 08:10 AM
gusstamax gusstamax is offline Removing multiple spaces Windows 10 Removing multiple spaces Office 2019
Novice
Removing multiple spaces
 
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, 15 views)
Reply With Quote
Reply

Tags
spaces, word vba

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing multiple spaces Removing trailing spaces from footnotes risomd Word VBA 11 08-30-2018 06:00 PM
Removing multiple spaces Removing spaces in activedocument after empty bookmarks faustino909 Word VBA 2 08-03-2018 01:34 PM
Removing multiple spaces Removing indentations at beginning of paragraphs and replacing with line spaces captainamerica Word 2 10-27-2017 05:32 PM
Removing multiple spaces removing spaces in cell Tonykiwi Excel 4 11-06-2016 09:30 PM
Word-Help with removing unwanted spaces in text greshoff Word 9 12-30-2011 03:24 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:00 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft