VBA & Macro Problems

Fix Word VBA Arc Shape Node Editing Inconsistencies

John WilsonJohn Wilson Oct 12, 2026 868 views

Question details

The user needs to align the behavior of the VBA SetEditingType command with manual node editing when modifying arc shapes in a Word document.

Fix Word VBA Arc Shape Node Editing Inconsistencies
Product
Microsoft Word
Device & OS
not provided
Scenario
Using the VBA SetEditingType command to change an arc shape node to a Corner type.
Observed behavior
The VBA SetEditingType command stretches the arc differently compared to manual editing, specifically when the defining circle of the arc extends beyond the document canvas.
Before you start

Ensure you have access to the Developer tab in Word and have saved a backup of your current VBA project before modifying and testing shape-manipulation macros.

Solution 1Recommended

Use Dynamic Resizing as a VBA Workaround

Since the native SetEditingType command has a known implementation limitation in Word, dynamically resizing or reshaping the object using alternative VBA dimensions is the most practical immediate solution.

Microsoft Word's shape-editing implementation currently calculates node boundaries differently via VBA than it does through the manual UI, particularly when the geometry exceeds the canvas. Relying on strict node type changes often results in unintended stretching.

1
Open the VBA Editor

Press Alt + F11 to open the VBA editor and locate the module containing your shape manipulation macro.

2
Implement dynamic reshaping code

Instead of relying strictly on the SetEditingType command, add fallback code to manually define and adjust the Shape.Width, Shape.Height, and positional properties (Shape.Left / Shape.Top) to simulate the desired corner node.

3
Test the macro adjustments

Run the macro on a sample document to verify that the arc shape proportions are accurately maintained within the visible canvas boundaries without distorted stretching.

Use Dynamic Resizing as a VBA Workaround
Workaround Limitation: This method creates a visual approximation of a circle sector. Until the core bug is patched by Microsoft, direct node conversion via VBA for shapes exceeding the canvas will remain unreliable.
Free Microsoft Office alternative

Try WPS Office for Smooth Document Editing

Experiencing limitations with Microsoft Word's advanced rendering engines? WPS Office offers a free, lightweight alternative with excellent document processing capabilities, a familiar interface, and high compatibility with standard Office files.

  1. 1. Download and Install: Visit the official WPS website to download the free WPS Office suite and follow the quick installation prompts.
  2. 2. Open Your Documents: Launch WPS Writer and open your existing .docx files; standard formatting and shapes are automatically retained.
  3. 3. Edit Seamlessly: Edit your documents using the highly compatible interface and save them back to standard Microsoft formats for easy sharing.
Fully compatible with Microsoft Word (.docx), Excel (.xlsx), and PowerPoint (.pptx) formats.Lightweight design ensures fast loading and smooth performance even with complex shapes and graphics.Familiar user interface allows for seamless migration without a steep learning curve.Free built-in PDF editing, conversion tools, and rich template library.
microsoft office alternative - wps office

Frequently Asked Questions

Why does VBA SetEditingType behave differently than manual editing?

This is a known inconsistency in Microsoft Word's shape-editing implementation. When a shape's defining circle extends beyond the document canvas, the VBA engine calculates the nodes differently than the manual user interface, leading to distorted stretching.

Can I insert a shaded circle sector directly using Word VBA?

Standard VBA commands typically create a circle segment rather than a true shaded sector. To achieve the visual appearance of a shaded sector, you often need to use dynamic resizing workarounds or combine grouped shapes.

How can I include code samples when reporting a VBA bug to Microsoft?

When using the 'Send a Frown' feature via File > Feedback in Word, you can paste your minimal reproducible VBA code directly into the description box. You can also use the Insert Image tool to attach screenshots showing the incorrect shape behavior.