Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Keawee,
Try this Replace(ActiveCell.Value, Chr$(10), " ") -- HTH Bob Phillips ... looking out across Poole Harbour to the Purbecks (remove nothere from the email address if mailing direct) "keawee" wrote in message ... Hello, I would like to have your assistance In VBA I have my data which starts in D5 until D156. In each cell, I have an address and in several addresses, I have a return to the line. My question. It is possible to detect in a string a return to the line in VBA and to replace it by a space. I have also another problem. In the address, I have some times several space between two words, is it possible to count the number of space between two words in if there is more than one space, then to remove the others not to have but one. Thanks for your help Keawee ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Find and replace a space with carriage return in excel | Excel Discussion (Misc queries) | |||
Find and Replace - Replace with Blank Space | Excel Discussion (Misc queries) | |||
enter does 1 line space- scanner does 2 line space need 1 line | New Users to Excel | |||
Replace a ; with a , and a space | Excel Worksheet Functions | |||
Find/Replace carriage return & line feed characters in Excel. | Excel Worksheet Functions |