I have the following code:
As you can see from the immediate window both cell values look the same but the code decides it isn't and skips to the 'Else' comment. Why would this be? I would expect the very next line to be completed in this instance. I have also tried using .text and get the same result from the code.
When the code looks for something that doesn't have a space (i.e. 'Cage1') it works. What is the best way to get the code to not care about the space?
Thanks!

As you can see from the immediate window both cell values look the same but the code decides it isn't and skips to the 'Else' comment. Why would this be? I would expect the very next line to be completed in this instance. I have also tried using .text and get the same result from the code.
When the code looks for something that doesn't have a space (i.e. 'Cage1') it works. What is the best way to get the code to not care about the space?
Thanks!