This morning I let him out into the garden when we got up, he immediately spotted a squirrel and started his frantic barking and dodging away from me when I tried to get him in. As it was 7:30am on a Sunday morning, I decided enough was enough! I put a lead on him - we have a thick plaited leather one that doesn't tangle up with things too easily. I let him back out, but the minute he started properly barking, he was brought back in, calmly and with no fuss. I allowed the odd single bark - a dog has to express himself, after all. But sustained barking got him put back indoors. After the second 'time out' we had no more barking this morning.
We've carried on with this regime this afternoon, when we've all been in and out of the garden to sit, read a book, catch some sun. Normally I only get five minutes peace before he starts barking at me for attention. Today, if he barked incessantly for more than a minute, he got brought into the house, and let out again after 30 seconds. If he barked again, back in. If he came over nicely to say hello he got petted and fussed and the ball thrown for him, and even got a hotdog from the BBQ because he asked nicely!
I've been in the garden for several hours now and only put him into the house for barking twice. This is a real improvement, he seems to have very quickly got the idea. I'll carry on with having the lead on him for a few days, then take it off and see how we do.