I have the following situation.
After importing data from a csv file certain cells contain strings that look like the one below.
As you can see at 2 places in the string there are excessive spaces. Infact, typically I get a carriage return followed by excessive spaces after a superscipt or subscript letter. I wrote a script that can remove the carriage returns but I don't know how to write a script to remove the spaces. Note: The lenght and the number of the spaces in a string varies.![]()
Please Login or Register to view this content.
If you know how to remove these spaces with a VBA script please share it with me.
The underlying problem is with the CSV files. I don't have control over the creation of the CSV files. The only way I can solve the problem from my end is by removing the carriage returns and excessive spaces after obtaining the CSV files.
Bookmarks