How to Fix Visio 2021 Not Renumbering P&ID Tags Correctly
Question details
Users need to resolve a sequential numbering error in Visio Professional 2021 where P&ID components fail to update their tag numbers properly after modifications.

- Product
- Visio Professional 2021
- Device & OS
- not provided
- Scenario
- Editing Piping and Instrumentation Diagrams (P&ID) and attempting to maintain a continuous, correct sequence of tag numbers after deleting or modifying components.
- Observed behavior
- Visio retains old tag numbers after components are deleted, or it assigns skipped and reused numbers instead of properly restarting the sequence. This is particularly noticeable in complex files with custom tags such as CV-x.
Before proceeding, create a new blank sheet within your current Visio workbook to prepare for the component sequence reset test.
Copy and Paste Design to a New Sheet
Use this workaround to force Visio to drop broken sequence links by transferring your P&ID design to a fresh sheet without source references.
By copying the diagram into a new sheet and explicitly cancelling the source hyperlinking prompt, Visio is forced to treat the components as new elements, which often restores normal renumbering behavior for basic files.
In your current Visio workspace, press Ctrl+A to select all components in your P&ID design.
Right-click the selection and choose Copy, or press Ctrl+C.
Click the '+' icon at the bottom of the Visio window to create a new blank sheet.
Press Ctrl+V to paste the copied diagram into the new sheet.
When Visio prompts asking whether the pasted shapes should be referenced or hyperlinked to their source, click 'Cancel' to allow proper tag renumbering.

Looking for a Lightweight and Versatile Office Suite?
While Visio handles specialized engineering diagrams like P&IDs, WPS Office provides an excellent, free alternative for standard office documents, flowcharts, and everyday business needs. Enjoy seamless compatibility and a familiar interface without the hefty subscription.
- 1. Download the software: Visit the official WPS Office website to download the free installation package.
- 2. Install WPS Office: Run the installer and follow the simple on-screen instructions to set up the software on your computer.
- 3. Create your diagrams: Open WPS Writer or Presentation, navigate to the Insert tab, and use Shapes to easily build your own flowcharts and diagrams.

Frequently Asked Questions
Why do custom P&ID tags like CV-x skip numbers in Visio 2021?
Visio sometimes retains hidden metadata and sequencing data from deleted shapes. When working with custom tags in complex diagrams, the internal sequence counter fails to reset properly, which results in skipped or incorrectly reused numbers.
Does the copy-paste workaround fix all tag numbering issues?
No. Selecting 'Cancel' on the source linking prompt successfully restores renumbering for simple files. However, extremely complex diagrams with varied custom tags might still experience sequencing issues and require manual correction.
Can I manually fix the skipped tag numbers in my Visio diagram?
Yes. If the automated renumbering fails in a complex file, you can manually select the affected components and update their tag properties directly in the Shape Data panel to fix skipped or duplicate numbers.




