答案 0 :(得分:1)
这应该相当快地遍历A和B列。
Option Explicit
Sub bFromNA()
Dim i As Long, str As String, e as long
With Worksheets("sheet2")
e = .range("A:A").specialcells(xlCellTypeFormulas, xlerrors)(1).row
For i = e To .Cells(.Rows.Count, "B").End(xlUp).Row
If IsError(.Cells(i, "A")) Then
str = .Cells(i, "B").Value2
Else
.Cells(i, "A") = str
End If
Next i
End With
End Sub