When you refer to a particular figure in your document, rather than typing in “Figure 2”, you can use a cross-reference, so if the figure number changes, the in-text reference will also change. This will also work to reference page numbers of headings and so on.
When your caption number changes, you can update the in-text references by right-clicking the in-text reference and selecting Update field.
The information provided in this guide is based upon a guide created by the University of Michigan Libraries. They have graciously made their guide available under a Creative Commons License 4.0. Please click the link to visit the UofM original.