Hi All,
I am new to VBA coding and would be great if anyone can help me with the below two points:
1. I have written a code however not able to put it into a for loop, so that i can stop rewriting the same code for multiple columns, secondly i am not able to add piece of code to replace single backslash with double backslash in the same code, below is the code i am using:
2. Another question i have is, if in a particular cell i have 2 values with '.' (dot) separator i can replace it with ',' (comma) or if there are multiple spaces i can trim it to one space however, if there is 1 value in the same cell its still replacing it with ',' as per the above rule, as for single value i just want to trim with single space or remove the dot if any.
EX:
'ABC. DEF' should get replaced as 'ABC,DEF' by removing space and replace the dot'.' with comma',' (below code is working till here)
if it's only 'ABC .' its converting it as 'ABC,'
What amendment i can make here so it becomes only 'ABC' (trim the space and remove any special character) in case of single value in that cell.
Using the below code:
Thanks!
Bookmarks