Not Wedded, But a Wife (1921)
Mutt inherits a fortune on condition that he marry before a certain day. Not being able to find a suitable lady who is willing, he dresses Jeff up in a female costume, drags him to the law office, and claims the money. Thereupon he is told that the will states that the money must remain in the bank