A man ignored a police warning not to harass his estranged wife, a court heard.

Susan Todd was so alarmed by Stephen Todd’s behaviour she locked herself in the supply cupboard at the office where she worked.

Yesterday Kirklees magistrates slapped a two-year restraining order on Todd.

Prosecutor James Weekes said that after an incident involving Mrs Todd, her husband was given a harassment warning by police.

The letter warned Todd that he faced further action if his behaviour continued, but he refused to sign it.

Then on October 4, the 52-year-old went to Mrs Todd’s work at the Alzheimer’s Society in St George’s Square.

A colleague saw Todd, of Wakefield Road in Fenay Bridge, outside the office and texted Mrs Todd to warn her.

She watched on camera as someone else let him into the building.

Mr Weekes said: “In a state of panic she locked herself into a supply cupboard.

“She heard the main door to the office rattle as if somebody was trying to get in. Over the intercom she heard him asking to speak to her.”

Police were called and Todd was arrested.

Magistrates heard that Todd and his wife had separated two months earlier and some of his property remained in the matrimonial home.

He said he went to see Mrs Todd as he needed his P45.

The two-year order bans him from contacting Mrs Todd, except via a third party, and going within 200 metres of her workplace.

Todd must also pay £250 fine, £85 costs and £25 victim surcharge.