How to insert same text in every other row in Excel?
In this article, we will show you how to insert same text in every other row in Excel. Please browse for more details.
Insert same text in every one row with VBA code
Insert same text in every other row with Kutools for Excel
Insert same text in every one row with VBA code
Supposing you want to insert texts “Name”, “Data” and “Score” to every one row in the certain range as below screenshot shown. Please try the following VBA code.
1. In the worksheet, press Alt + F11 keys simultaneously to open the Microsoft Visual Basic for Application window.
2. Click Insert > Module. See screenshot:
3. Copy and paste below VBA code into the Code editor.
VBA code: insert same text in every one row in Excel
Sub inserttexteveryonerow()
Dim Last As Integer
Dim emptyRow As Integer
Last = Range("A" & Rows.Count).End(xlUp).Row
For emptyRow = Last To 2 Step - 1
If Not Cells(emptyRow, 1).Value = "" Then
Rows(emptyRow).Resize(1).Insert
Range(Cells(emptyRow, "A"), Cells(emptyRow, "C")).Value = Array("Name", "Date", "Sore")
End If
Next emptyRow
End Sub
Notes: In the above code:
Insert same text in every other row with Kutools for Excel
With the above code, you can just insert text in every one row. How about insert text in every n row in Excel? In this section, we will show you the Insert Titles rows utility of Kutools for Excel. With this utility, insert text in every n row won’t be a problem anymore.
Before applying Kutools for Excel, please download and install it firstly.
1. Click Kutools > Insert > Insert Titles Rows to enable this utility.
2. In the Insert Titles Rows dialog box, you need to:
Now the specified text is inserted in every n row in the selected range.
If you want to have a free trial (30-day) of this utility, please click to download it, and then go to apply the operation according above steps.
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!




