North End had a £750,000 bid for the striker accepted by West Brom late last week and Dobie had been in talks over personal terms at Deepdale.
However, Millwall had been monitoring the situation and the South London have confirmed that they have agreed personal terms with the Scotland international and Dobie will be signing for them once formalities between the two clubs have been finalised.