Nanogirl21
Active Member
- Joined
- Nov 19, 2013
- Messages
- 331
- Office Version
- 365
- Platform
- Windows
Using VBA is there a way to replace carriage returns with a comma space?
Also, if the value ends with comma space or comma i''d like to delete those value.
This will be done on sheet called Cranberries in coulmn E only.
EXAMPLE
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]CURRENT
[/TD]
[TD]WANTED RESULTS
[/TD]
[/TR]
[TR]
[TD]APPLE JUICE
GRAPE JUICE
ORANGE JUICE,
[/TD]
[TD]APPLE JUICE, GRAPE JUICE, ORANGE JUICE
[/TD]
[/TR]
[TR]
[TD]HOT DOG
BURGER
[/TD]
[TD]HOT DOG, BURGER
[/TD]
[/TR]
[TR]
[TD]BLUE
GREEN
YELLOW,
[/TD]
[TD]BLUE, GREEN, YELLOW
[/TD]
[/TR]
[TR]
[TD]WINTER
SUMMER
SPRING
FALL,
[/TD]
[TD]WINTER, SUMMER, SPRING, FALL
[/TD]
[/TR]
[TR]
[TD]HOT, COLD, WARM, UNKNOWN
[/TD]
[TD]HOT, COLD, WARM, UNKNOWN
[/TD]
[/TR]
</tbody>[/TABLE]
Also, if the value ends with comma space or comma i''d like to delete those value.
This will be done on sheet called Cranberries in coulmn E only.
EXAMPLE
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]CURRENT
[/TD]
[TD]WANTED RESULTS
[/TD]
[/TR]
[TR]
[TD]APPLE JUICE
GRAPE JUICE
ORANGE JUICE,
[/TD]
[TD]APPLE JUICE, GRAPE JUICE, ORANGE JUICE
[/TD]
[/TR]
[TR]
[TD]HOT DOG
BURGER
[/TD]
[TD]HOT DOG, BURGER
[/TD]
[/TR]
[TR]
[TD]BLUE
GREEN
YELLOW,
[/TD]
[TD]BLUE, GREEN, YELLOW
[/TD]
[/TR]
[TR]
[TD]WINTER
SUMMER
SPRING
FALL,
[/TD]
[TD]WINTER, SUMMER, SPRING, FALL
[/TD]
[/TR]
[TR]
[TD]HOT, COLD, WARM, UNKNOWN
[/TD]
[TD]HOT, COLD, WARM, UNKNOWN
[/TD]
[/TR]
</tbody>[/TABLE]