This problem has been bugging me for a long time. Does anyone know code that can select an exact number of rows to freeze at the top of a worksheet?

Thanks in advance for any help.