方法三:利用宏命令插入多行
对于需插入大量空行的复杂需求,可以考虑使用VBA宏。
1. 按“Alt” + “F11”开启VBA编辑器,插入新的模块。
2. 粘贴以下代码:
```vba
Sub InsertBlankRows()
Dim r As Long
For r = Selection.Rows.Count To 1 Step -1
Selection.Rows(r).EntireRow.Insert
Selection.Rows(r).EntireRow.Insert
Next r
End Sub
```
3. 选中文本区,运行这个宏,即可创建空行。
该方法较为复杂,但能在一行行中快速插入任意数量的空行。