halobender
Technical User
- Mar 16, 2007
- 37
Hey guys I am trying to write a macro to remove extra line breaks in blocks of text and hope to accomplish this in a loop as opposed to writing each line by hand.
The issue is this, the users that have used this spreadsheet have word wrap turned on and to make a different entry inside the same text box they have used many spaces to drop down a line instead of alt+enter
the ideal macro will search for 3 or more spaces and replace with a vbLf
I also do not need empty line breaks like below
05/21- i need to write this macro because i need to print this correctly
05/23- I really need to figure this out with your help
Ideally it would look like this instead
05/21- i need to write this macro because i need to print this correctly
05/23- I really need to figure this out with your help
My next question is about replacing text/numbers, some of the dates in the text are 5/11/2008, 05/11/2008, 05/11/08, 05-11-08, 05-11-2008, etc
I want all dates to be formatted 05/11 dd/mm and attempted to do this with strings using wildcard characters however my wildcards end up being the replacement text as well
Please help
The issue is this, the users that have used this spreadsheet have word wrap turned on and to make a different entry inside the same text box they have used many spaces to drop down a line instead of alt+enter
the ideal macro will search for 3 or more spaces and replace with a vbLf
I also do not need empty line breaks like below
05/21- i need to write this macro because i need to print this correctly
05/23- I really need to figure this out with your help
Ideally it would look like this instead
05/21- i need to write this macro because i need to print this correctly
05/23- I really need to figure this out with your help
My next question is about replacing text/numbers, some of the dates in the text are 5/11/2008, 05/11/2008, 05/11/08, 05-11-08, 05-11-2008, etc
I want all dates to be formatted 05/11 dd/mm and attempted to do this with strings using wildcard characters however my wildcards end up being the replacement text as well
Please help