logo
search
Document Editing Problems

How to Connect Two Objects with a Straight Line in Word

Elise WilliamsElise Williams Oct 10, 2026 878 views

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.

How to Connect Two Objects with a Straight Line in Word
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.
Before you start

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.

Solution 1Recommended

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.

1
Insert a Drawing Canvas

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.

2
Add Shapes to the Canvas

Draw or paste your two objects entirely inside the boundaries of the newly created drawing canvas.

3
Select a Connector Line

Go back to 'Insert' > 'Shapes' and choose a straight line connector from the 'Lines' section.

4
Connect the Objects

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.

Verify the Connection: When connected properly, the endpoints of the line will turn green (or show a solid circle), indicating that the line is securely anchored to the shapes.
Seamless Diagramming in WPS Office

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. 1. Open your Document in WPS Writer: Launch WPS Office and open your existing Word document, or create a new blank document.
  2. 2. Insert Shapes: Navigate to the 'Insert' tab, click on 'Shapes', and draw your desired objects onto the page.
  3. 3. Select a Line Connector: From the same 'Shapes' drop-down menu, select a straight line from the 'Lines' category.
  4. 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.
Fully compatible with Microsoft Word (.docx) formats, ensuring your diagrams and flowcharts stay perfectly intact.Lightweight and fast, allowing for smooth document editing even with dozens of graphical elements.Rich built-in flowchart and diagramming tools that are entirely free to use.Familiar user-friendly interface that requires zero learning curve for Office users.
microsoft office alternative - wps office

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.