If the codes don't work in the booket Comcast provided, try looking up codes with this link.
This link gave me codes that did not come with the remote. The codes from this link worked instead.
Wasted an hour trying to program 3 TV's just to discover that the codes that came with the remote for two tv's (Sony and Visio) are obsolete. Typical Comcast. Poor management.