Hello!
I am using a macro to copy, sort, format and delete some data which I pull from a textfile. however, some data (text only) starts with a "-" sometimes which was originally thought to help sort the data in the system from where the data originally comes from. Now when I import the columns to excel, I have the problem that excel understands the "-" as a formula and echoes me a #NAME error for that cell, which causes the macro to stop while processing it and leaves unfinished.
So, could someone maybe please provide me some code which helps me to check all cells in a certain range if any is starting with a "-" and if yes, replaces it with a " ' " or something else which is acceptable for excel?
thank you very much for the help!
A2k
Bookmarks