The reversible switching of macrocyclic molecules between a liquid and a solid phase upon exposure to vapor has been reported.