The One Foot in the Grave star met members of the public at the South West Library in Greenock, Inverclyde, and was impressed with what he saw.
The library holds special memories for Richard as it was his local library when growing up in nearby Dunlop Street. He also went to the nearby Lady Alice Primary School.
The refurbishment project took six months to complete and includes a new roof and double glazing. The library now boasts a state-of-the-art learning zone with interactive whiteboard, meeting rooms, an increased number of public access PC's with free Wi-Fi, a bright comfortable children's area, a young adult area with study space, comfortable seating and a coffee machine.
Councillor Terry Loughran said: "We are delighted that Richard has found the time to perform the official opening of the South West Library, which has been transformed to create a refreshed facility fit for the 21st century, while maintaining much of its original character.
"This project marks part of our commitment to ensuring that libraries are modern, accessible and provide a wide range of services that meet our local community's needs; from free Wi-Fi access, to e-books and music lending."