AC Milan have confirmed they will complete the signing of Ronaldinho on Wednesday.
The Rossoneri have announced that they have agreed a fee with Barcelona and terms with the the Brazilian playmaker.
After rejecting overtures from Manchester City, Ronaldinho has agreed a three-year deal with the Milan club, keeping him at the San Siro until 2011.
Milan released a statement on their official website which read: "AC Milan and Barcelona have reached an agreement in principle over the transfer of Ronaldinho.
"The player will be in Milan [on Wednesday] to undergo a medical and sign a contract that will keep him at Milan until June 30 2011."
Milan president Silvio Berlusconi confirmed that vice-president Adriano Galliani had finalised the deal.
"Galliani phoned me this evening and there has been a handshake," he told Sky Italia.
"I have no reason to doubt it and tomorrow morning the contract will arrive."
And Galliani added: "Tomorrow (Wednesday) Ronaldinho will undergo medical examinations, and once he has completed them he will be a Milan player."
It is believed the final fee for Ronaldinho will be €18.5million (£14.6million) with the player earning an estimated €6.5million (£5.1million) per season.