VBA Code:
Sheets("Print_Results").Range(myrange).Replace What:="£", Replacement:="" ' , SearchOrder:=xlByColumns, MatchCase:=True
Sheets("Print_Results").Range(myrange).Replace What:="$", Replacement:="" ' , SearchOrder:=xlByColumns, MatchCase:=True
I have been using the above for ages (years) to enable me to take the contents of a listbox and print to a worksheet but to remove any 'hard' currency symbols before formatting that then allows me to see formatted numbers but without the 'hard' symbol. (they still appear as numbers rather than alpha strings with numbers, symbols, - sign etc). Each of the cells is displayed with top left hand corner containing the 'Green Triangle'
Earlier today it just failed to work and I can not see any obvious reasons. The Worksheet is correct the range is 'large'.
I get round the problem by replacing - i.e. REPLACE(xxxx,"£","") which does work
I have exited Excel and reloaded
Suspect I have done something, somewhere but just eludes me at the moment, (using Excel / Office 2016)
Anything suggestions appreciated