To replace a single shape, drag it from the sidebar to the replace shape icon as follows:

 

replaceshape.gif

To replace multiple shapes, select the cells in the diagram whose shapes should be replaced and click the shape in the sidebar while holding down the Shift key as follows:

 

replaceshapes.gif