He then unsuccessfully fought Edinburgh East at a by-election in 1947, and finally was beaten once more at Dundee West in 1951.
In the by-election of 1947, he contested Edinburgh East but lost. He also lost to Dundee West in 1951.