VBA & Macro Problems

How to Create an Animated Message in Excel Using VBA

John WilsonJohn Wilson Oct 23, 2026 868 views

Question details

The user wants to display timed or animated messages within an Excel spreadsheet.

How to Create an Animated Message in Excel with VBA
Product
Microsoft Excel
Device & OS
not provided
Scenario
Enhancing an Excel dashboard or spreadsheet presentation with visual, timed animated messages using code or external objects.
Observed behavior
Excel lacks native animation tools like PowerPoint, meaning VBA must be used to simulate animated text or external animations must be embedded.
Before you start

Before you begin, ensure your workbook is saved as an Excel Macro-Enabled Workbook (.xlsm) and that macros are enabled in your Trust Center settings.

Solution 1Recommended

Use VBA to Create a Blinking Animated Message

Write a VBA macro that toggles the visibility of a text box at timed intervals to create a simple blinking effect.

Although Excel lacks a dedicated animation engine, you can simulate animations by repeatedly modifying shape properties (such as visibility, position, or size) using VBA loops and the Application.Wait function.

1
Insert a Text Box

Go to the Insert tab, click on Text Box, and draw it on your sheet. Type your message and name the shape 'AnimatedBox' in the Name box near the formula bar.

2
Open the VBA Editor

Press Alt + F11 to open the Visual Basic for Applications editor. Go to Insert > Module to create a new module.

3
Write the Animation Code

Create a macro loop that switches the ActiveSheet.Shapes("AnimatedBox").Visible property between True and False. Use a For Next loop to limit the number of blinks.

4
Add a Timer

Inside the loop, use Application.Wait (Now + TimeValue("0:00:01")) to control the speed of the blink, then run the macro to see your animated message.

Use VBA to Create a Blinking Animated Message
Macro Loop Warning: Running continuous loops in VBA will prevent you from interacting with the Excel sheet. Ensure you set a fixed number of iterations or include a DoEvents command.
Advanced Spreadsheet Tool

Create and Manage Macros with WPS Office

WPS Office offers robust spreadsheet capabilities, including seamless support for VBA macros in its advanced editions, allowing you to create automated shapes and messages easily.

  1. 1. Install WPS Office: Download and install WPS Office, then open your workbook in WPS Spreadsheet.
  2. 2. Insert a Shape: Navigate to the Insert tab, add a shape or text box, and customize your message.
  3. 3. Access the VBA Editor: Go to the Developer tab and click on 'Visual Basic' to open the VBA Editor.
  4. 4. Run Your Code: Paste your shape-manipulation VBA code and execute it directly within WPS Spreadsheet.
Fully compatible with Microsoft Excel (.xlsx and .xlsm) formatsFamiliar user interface with built-in macro supportLightweight and fast to installFree to use for essential spreadsheet tasks
microsoft office alternative - wps office

Frequently Asked Questions

Can I use Excel's built-in animations for cells?

Excel does not have native animations for cells. To create visual changes, you must use VBA macros to manipulate shapes or employ conditional formatting tricks to simulate movement.

Why is my VBA animation making Excel freeze?

Using endless loops without passing control back to the system will cause Excel to freeze. You should use the 'DoEvents' command within your VBA loop to keep the application responsive.

Do embedded PowerPoint animations play automatically in Excel?

No, embedded PowerPoint objects typically require a user to double-click them to initiate the presentation environment and play the animation sequence.