Hi,

That is correct.

Since you're leaving some of the pins as analog inputs I'm guessing you're going to use them as that - ie analog inputs. In that case it might be needed to set the bits 4-7 in ADCON1 properly as well. Sometimes it's easier to "see" what you're doing if you write the value in binary form, like:
Code:
ADCON1 = %10000110   'Right justified result, VDD/VSS used as Vref, AN9-13 set to digital
/Henrik.