Henrick,
Your suggestion worked.
It's the TX pin that I wanted to free up after using hersout at the top of my program. So, I inserted this line.

TXSTA.5 = 0 'disable transmit function.

Later, the function is re-enabled:

TXSTA.5 = 1

I should have read the data sheet more carefully.
Thanks,
Dick