Thanks BigWumpus, i tried this, but still no luck.

Ideally i want to monitor lines RC0, RC1, RC2, RC6, RC7 and RA0 (can't use RC3 as there isn't one and RC4 & 5 are used for USB. When a switch is depressed on one of theses lines it jumps to a corresponding sub routine.

I've got the Case Select routine working for RC0-2 but am struggling with the rest, particulalry as it loks at a different PORT.

Can anyone help please?

Thanks,