How to Create an Animated Message in Excel Using VBA
Question details
The user wants to display timed or animated messages within an Excel spreadsheet.

- 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 begin, ensure your workbook is saved as an Excel Macro-Enabled Workbook (.xlsm) and that macros are enabled in your Trust Center settings.
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.
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.
Press Alt + F11 to open the Visual Basic for Applications editor. Go to Insert > Module to create a new module.
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.
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.

Embed an Animated PowerPoint Slide into Excel
If you need complex animations, create them in PowerPoint and embed the presentation into your Excel sheet.
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. Install WPS Office: Download and install WPS Office, then open your workbook in WPS Spreadsheet.
- 2. Insert a Shape: Navigate to the Insert tab, add a shape or text box, and customize your message.
- 3. Access the VBA Editor: Go to the Developer tab and click on 'Visual Basic' to open the VBA Editor.
- 4. Run Your Code: Paste your shape-manipulation VBA code and execute it directly within WPS Spreadsheet.

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.




