PDA

View Full Version : Force tabbing through an multiple cell/matrix range



Rejje
05-30-2011, 04:36 AM
Hi!

I'm in need of a code that will only allow cells to be marked that are defined in a multiple cell/matrix range:

Range("ALLOWED_REFERENCE")

Reference for range = KP!$D$13;KP!$D$15;KP!$D$17;KP!$D$19;KP!$D$21;KP!$D$23;KP!$D$25;KP!$D$27;KP! $D$29;KP!$D$31;KP!$D$33;KP!$D$35;KP!$D$37;KP!$D$49;KP!$D$65;KP!$D$67;KP!$D$ 69;KP!$D$71;KP!$D$77;KP!$D$79;KP!$D$81;KP!$D$87;KP!$D$89;KP!$D$91;KP!$D$101 ;KP!$D$103;KP!$D$105;KP!$D$107;KP!$D$109;KP!$D$111;KP!$D$113;KP!$Q$13;KP!$Q $15;KP!$Q$17;KP!$Q$19;KP!$Q$49;KP!$Q$113;KP!$D$122:$D$136;KP!$G$122:$G$136; KP!$I$122:$I$136;KP!$K$122:$K$136;KP!$M$122:$M$136;KP!$O$122:$O$136;KP!$Q$1 22:$Q$136;KP!$S$122:$S$136;KP!$U$122:$U$136;KP!$W$122:$W$136;KP!$Y$122:$Y$1 36;KP!$AA$122:$AA$136;KP!$AC$122:$AC$136;KP!$AG$122:$AH$136

Also if possible tabbing within this range should follow the order of cells within the reference.

Is this possible?