cocopops2001
Board Regular
- Joined
- Apr 18, 2011
- Messages
- 112
when testing for range of values what is the best way to do it, i want to copy a sheet over to a new book. I want to test five variables and if all five do not match then paste a certain sheet into the new book. can i use something like this.
or am i better defining my range as a variable and then testing against that?
Code:
If Sheet1.Range("a1", "D5", "n50", "M10", "C6").Value <> Thisworkbook.Sheet(1).Range("a1", "D5", "n50", "M10", "C6").Value Then
''''''copy the sheets
End If
or am i better defining my range as a variable and then testing against that?