EdwardAveyard
New Member
- Joined
- Feb 9, 2015
- Messages
- 10
Hello. I'm sure that many of you will know that Excel's data-validation tool from the ribbon is easily overridden by copying and pasting a cell from elsewhere. I'm aware that VBA can be used for validations but I don't know how to do it.
I found one macro online that seemed to work but very, very slowly. It was structured "For each Cell in Range..." As there are 2000 rows and 198 columns in the range, I think that it was being slowed down by having to go through so many cells.
Does anyone know how I can use VBA for validations on a 2000 x 198 array without slowing the file down?
The validations would all be for whole numbers between 0 and x, but x varies in different columns.
If anyone wants the range to play with in their macros, it is E4:GT2003.
Thanks.
I found one macro online that seemed to work but very, very slowly. It was structured "For each Cell in Range..." As there are 2000 rows and 198 columns in the range, I think that it was being slowed down by having to go through so many cells.
Does anyone know how I can use VBA for validations on a 2000 x 198 array without slowing the file down?
The validations would all be for whole numbers between 0 and x, but x varies in different columns.
If anyone wants the range to play with in their macros, it is E4:GT2003.
Thanks.
Last edited: