How to Connect Two Objects with a Straight Line in Word
Question details
The user wants to link two shapes or drawing objects together using a straight connector line that stays attached when the objects are moved.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Creating diagrams, flowcharts, or linked graphics in a document where shapes need to maintain visual connections.
- Observed behavior
- The user needs a line that explicitly anchors to the connection points of both shapes, ensuring the layout dynamically adjusts if the objects are repositioned.
Ensure your document layout is set to Print Layout view, as drawing canvases and shape connectors function best and are most visible in this mode.
Connect Shapes Using a Drawing Canvas
A drawing canvas is required in Microsoft Word to use dynamic connectors that stay anchored to your objects when they are moved.
In Word, lines will only act as anchored connectors if both the objects and the line itself are placed within a Drawing Canvas. Without a canvas, lines operate as independent graphics.
Go to the 'Insert' tab on the ribbon, click on 'Shapes', and select 'New Drawing Canvas' at the very bottom of the drop-down menu.
Draw or paste your two objects entirely inside the boundaries of the newly created drawing canvas.
Go back to 'Insert' > 'Shapes' and choose a straight line connector from the 'Lines' section.
Hover your cursor over the first shape until you see the connection points appear as small dots. Click and drag the line from one connection point directly to a connection point on the second shape.
Create a Quick Horizontal Divider Line
If you only need a simple straight horizontal line across the page instead of linking two specific objects, use Word's auto-format shortcut.
Easily Connect Objects and Shapes with WPS Writer
WPS Office provides an intuitive and free platform for creating complex diagrams, flowcharts, and connected graphics. You can easily insert shapes and dynamically link them with connectors, all while maintaining perfect compatibility with Microsoft Word.
- 1. Open your Document in WPS Writer: Launch WPS Office and open your existing Word document, or create a new blank document.
- 2. Insert Shapes: Navigate to the 'Insert' tab, click on 'Shapes', and draw your desired objects onto the page.
- 3. Select a Line Connector: From the same 'Shapes' drop-down menu, select a straight line from the 'Lines' category.
- 4. Link the Shapes: Hover your mouse over the first shape to reveal its anchor points. Click and drag the line to a designated anchor point on the second shape to connect them dynamically.

Frequently Asked Questions
Why won't my straight line attach to the shapes in Word?
In Microsoft Word, connectors only become dynamic (anchored) when the shapes and the line are both placed inside a Drawing Canvas. If you draw them directly on the standard page area, the line will act as a floating graphic and won't stay attached if the shapes are moved.
Can I change the color and thickness of the connector line?
Yes. Select the connected line, navigate to the 'Shape Format' tab on the ribbon, and click 'Shape Outline'. From there, you can choose a new color, change the 'Weight' to make it thicker, or modify the style to dashed or dotted.
How do I remove a connector line without deleting my shapes?
Simply click directly on the connector line to select it (selection handles will appear at both ends), then press the 'Delete' or 'Backspace' key on your keyboard. The shapes themselves will remain completely unaffected.




