So everything went well until I coded the whole sheet and i got a compile error because "Procedure Too Large". I had to do the intersect for each row of 4 cells that I am trying to only allow 1 entry for. So basically 48 of the below back to back. (I have the "Ender" at the bottom of all of the code). Everything works exactly as it should, it is just too much for VBA to handle.
To reiterate, I have four ranges:
-I12:L21
-Q12:T21
-Y12:AB21
-AG12:AJ21
But each line (i.e. I12:L12, or Q12:T12) can only have one selection. I had trouble using the intersect when I name the large range (ex - I12:L21) so I went with using a separate intersect for each 4 cell row (ex - I12:L12) as seen below.
I am sure that I made it much more complicated than it should be, but I am new to VBA and it was working like I wanted, it just became too large. Any advice on trimming it or making it more efficient so that it will fit?
Bookmarks