The Duchess of Gloucester made a Royal visit to Glebe Primary School at a special ceremony to mark the opening of the school's new building.
The school in Sussex Road, Ickenham, has undergone major refurbishment work as part of Hillingdon Council's school expansion programme for the borough.
Children lined the playground to welcome the Duchess before she was given a tour of the school and performed the official opening ceremony in the school hall.
The old school building has recently been demolished and an entire new building was built as part of the expansion, increasing intake at the primary school to a three form entry.
When the school is at maximum capacity it will provide places for more than 700 pupils in the borough.
The writer and broadcaster later tweeted about the memorable visit to her old school during which she was asked to open the school's new Sue Cook Library in honour of her.
Headteacher Nick Alford said: "It was a really fantastic day, we were so pleased to have the Duchess visiting.
"We wanted to name the library after Sue Cook as a writer and journalist and when I asked her if that would be ok she was delighted and I think she was very pleased to be asked to come and open it for us.
"Eight years ago when I joined the school we had 280 children and when we are full after this expansion we will have over 700. So it is a huge increase and we have improved in our results year on year too," he said.