Hi everyone, I'm having some trouble with something that's really simple and can't get it to work. Hopefully someone will be able to shed some light.
Basically, I need VBA to compare two ranges (of the same lenght) and, if they are equal, do something.
Like this:
[pre]
[/pre]
Basically, if values in A1:A10 are exactly the same (same order and everything) as B1:B10, run some code.
Thanks!
Basically, I need VBA to compare two ranges (of the same lenght) and, if they are equal, do something.
Like this:
[pre]
Code:
If Sheet1.Range("A1:A10").Value = Sheet1.Range("B1:B10").Value Then 'and here my code
Basically, if values in A1:A10 are exactly the same (same order and everything) as B1:B10, run some code.
Thanks!