Assembly or disassembly of microtubules by the addition or removal of tubulin heterodimers from a microtubule.