VBA & Macro Problems

Can Microsoft Word Macros Record Object Outlines and Drop Shadows?

Aamir Naveed AkramAamir Naveed Akram Nov 13, 2026 868 views

Question details

The user wants to know whether Microsoft Word's Macro Recorder can capture outline and drop-shadow formatting applied to graphical objects.

Product
Microsoft Word
Device & OS
not provided
Scenario
Recording a macro to automate graphical-object formatting through Word's interface.
Observed behavior
The Macro Recorder may not capture every object-formatting action, including applying outlines and drop shadows.
Before you start

Identify the object type you are formatting, such as a shape or picture, because available formatting commands differ. Test the recording in a separate document and save it as a Word Macro-Enabled Document (.docm) if you want to retain the macro.

Solution 1Recommended

Check whether Word records the outline and shadow commands

Use a short test recording to determine whether the required formatting actions are captured in your version of Word.

Word's Macro Recorder does not capture every action available in the interface. An outline or shadow command can work manually without producing usable recorded VBA; this does not necessarily indicate a problem with the document.

1
Start a test recording

In desktop Word, open a test document containing the relevant object. Go to View > Macros > Record Macro, enter a name, choose the test document under Store macro in, and click OK.

2
Apply the object formatting

Try selecting the object and using its contextual formatting tab. For a shape, use Shape Format > Shape Outline and Shape Effects > Shadow. For a picture, use Picture Format > Picture Border and Picture Effects > Shadow.

3
Stop and inspect the macro

Go to View > Macros > Stop Recording. Then open View > Macros > View Macros, select the recorded macro, and click Edit to inspect whether VBA statements for the outline and shadow were generated.

4
Compare playback with the manual result

In the test document, remove the formatting or prepare a comparable unformatted object. Select the intended object, then choose View > Macros > View Macros, select your macro, and click Run. Check whether both formatting effects are reproduced.

Recording support is not the same as VBA support: If the commands are missing from the recording, recording them again may not help. Custom VBA may still be possible, but it must use the appropriate object-model properties for the specific object type.
Free Microsoft Office alternative

Use WPS Writer for everyday Word document editing

WPS Office is a free, lightweight alternative for everyday document editing. WPS Writer offers a familiar interface and Microsoft Word format compatibility for an easy transition, but it does not fix Word's Macro Recorder limitations or guarantee identical VBA behavior.

Open and edit Microsoft Word .doc and .docx files.Work with graphical objects using WPS Writer's available formatting tools.Use a familiar document-editing interface to ease migration from Word.Choose a lightweight office suite for everyday writing and layout tasks.
microsoft office alternative - wps office

Frequently Asked Questions

Why does my macro omit an outline or shadow that I applied manually?

Word's Macro Recorder may not support recording that particular object-formatting command. Open View > Macros > View Macros, select the macro, and click Edit to check whether the relevant VBA statements were generated.

Does missing recorded code mean Word cannot automate the formatting?

Not necessarily. The recorder and the VBA object model have different capabilities. Custom VBA may be able to set line and shadow properties, depending on whether the target is a shape, picture, or inline object.

Where can I ask Microsoft to add recording support?

In Word for Windows, try File > Feedback and submit a suggestion describing the missing commands. Include the object type, reproduction steps, and Word version so the product team can evaluate the request.

Will switching to WPS Office fix this Word Macro Recorder limitation?

No. WPS Writer is an alternative for document editing, not a repair for Microsoft Word's recorder. Before moving a macro-dependent workflow, verify the VBA support available in your WPS edition and test the required automation.