View Single Post
 
Old 04-29-2018, 10:22 AM
dita dita is offline Windows XP Office 2010 64bit
Advanced Beginner
 
Join Date: Apr 2018
Posts: 34
dita is on a distinguished road
Default Macro to find and replace specific types of spaces

Hello,

This one looks a bit tricky but hope any of you guys know how to do it!

I need a Macro to make a multiple search of different types of spaces which appears along to numbers or symbols.

The idea is that the Macro FIND some specific types of spaces and THEN replace them with non-breaking spaces.

When the Macro finds such spaces, I will decide if the space can be replaced by a non-breaking space or not. So, the Macro should prompt and ask if the space can be replaced by a non-breaking space and then continuing with the rest of instances.

Basically, the Macro will search the following spaces:

NOTE: I have put an asterisk "*" in order to make visible the space

- All numbers following a space: [0‐9]*
- Equal sign and space: =*
- Space and equal sign: *=
- Bracket followed by space: [0‐9]\)

Would that be possible?

Thanks in advance!
Reply With Quote