Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Create Flashing Letters on Excel: VBA in Excel

VBA in Excel is the focus of this article. To create flashing words on Excel, we need to use VBA programming language.

Table of Contents

This article examines VBA in Excel and explains the main developments, practical implications, and context readers should understand.

With this effect we can highlight certain content in Excel data sheet to readers. Specifically, users can change the blinking font color through the code. The following article will guide you how to create flashing letters on Excel.

  • How to break VBA password in Excel
  • How to send email from Excel spreadsheet with VBA script
  • 10 ways to recover corrupted Excel files
  • Forgot password protected Excel file, what should you do?

Instructions for Creating Flashing Letters on Excel

Step 1:

Open the Excel file and press Alt + F11 to open Excel's VBA code.

At the Microsoft Visual Basic dialog box for Applications users click on Insert and select Module as shown below.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel

Step 2:

Display the Moude interface for you to paste the code below into the interface.

 Sub StartBlink () 
 Dim xCell As Range 
 Dim xTime As Variant 
 Set xCell = Range ("A1") 
 With ThisWorkbook.Worksheets ("Sheet1"). Range ("A1"). Font 
 If xCell.Font.Color = vbRed Then 
 xCell.Font.Color = vbWhite 
 Else 
 xCell.Font.Color = vbRed 
 End If 
 End With 
 xTime = Now + TimeSerial (0, 0, 1) 
 Application.OnTime xTime, "'" & ThisWorkbook.Name & "'! StartBlink",, True 
 End Sub 

Note that you should copy the above code into Notepad and then edit it again The position of the cell and the working Sheet is the position of the text you want to create the flash effect. In the text that is written in cell A1 and in Sheet 1. Users can enter any cell and Sheet that they want.

Press Alt + Q to turn off the dialog box.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (2)

Step 3:

In the correct position of the cell and Sheet in the code you have created, enter the content you want to create a flashing effect on Excel.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (3)

Click on the Developer tab and then select the Insert item below and click on the Button (Form control) icon.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (4)

Step 4:

Draw any square in the Excel interface to make the button activate the blinking effect for the Word.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (5)

Once you release the mouse button, the Assign Macro dialog box will display. Here the user will need to select 2 items:

  • Macro name: You select StartBlink.
  • Printed Macros: Click This Worknook on the list.

Click OK to save the settings.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (6)

Step 5:

To change the text in the new frame, right-click and choose Edit Text.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (7)

Enter any content you want into this frame and press Enter to save it. If you want, users can still change the font, the font size for this Button.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (8)

The end result when clicking on that button will automatically flash the text according to the color we have set in the code, here is red and white.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (9)

In case you want the Word flashing green to red, click on the Developer tab and select Visual Basic.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (10)

Next change from white (White) to blue (Blue) in the code as shown below. Also press Alt + Q to save this new code.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (11)

The Word results will flash from red to blue.

How to Create Flashing Letters on Excel: VBA in Excel – Instructions for Creating Flashing Letters on Excel (12)

Through VBA in Excel, you have added a way to create content highlighting in the data with an automatic blinking effect. Note that we need to enter the correct code, especially the brackets in the code, to avoid error after applying the code.

The Video Makes the Text Flash Automatically on Excel

I wish you all success!

FAQ

How does VBA in Excel work?

This article examines VBA in Excel and explains the main developments, practical implications, and context readers should understand.

What should you prepare before using this method?

With this effect we can highlight certain content in Excel data sheet to readers.

What should you do if the process does not work as expected?

Specifically, users can change the blinking font color through the code.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.