I am copying data between some sheets with my vba and some of the cells pasted start with a minus or plus sign.
This is causing them to come up with a name error and also causing errors in my code.
The original data (pasted from another program) has cells starting with plus or minus and this is making excel see them as a formula.
I want to remove these - so when they are pasted, they come out as "=-etc" or "=+etc" so excel is adding the = to the front.
What is the best way to fix this?
Thinking of something like if the first two letters are "=-" or "=+" then remove the first two letters??
Any help appreciated.
Thanks
Tom
This is causing them to come up with a name error and also causing errors in my code.
The original data (pasted from another program) has cells starting with plus or minus and this is making excel see them as a formula.
I want to remove these - so when they are pasted, they come out as "=-etc" or "=+etc" so excel is adding the = to the front.
What is the best way to fix this?
Thinking of something like if the first two letters are "=-" or "=+" then remove the first two letters??
Any help appreciated.
Thanks
Tom