How do I check if one range is exactly the same as another?

This didn't work:
[VBA]if aRange = anotherRange then[/VBA]

So I've been using:
[VBA]if aRange.address = anotherRange.address then[/VBA]

Is that correct?