Sub InsertPipe()
Application.ScreenUpdating = False
Dim v As Variant, r As Long, c As Long, arr() As Variant
v = ActiveSheet.UsedRange.Cells.Value
ReDim arr(1 To UBound(v), 1 To UBound(v, 2))
For r = LBound(v) To UBound(v)
For c = LBound(v, 2) To UBound(v, 2)
If v(r, c) <> "" Then
arr(r, c) = "|" & v(r, c)
Else
arr(r, c) = ""
End If
Next c
Next r
Range("A1").Resize(UBound(v), UBound(v, 2)) = arr
Application.ScreenUpdating = True
End Sub
Sub InsertPipe_2()
Application.ScreenUpdating = False
Dim v As Variant, i As Long, ii As Long
v = ActiveSheet.UsedRange.Value
For i = LBound(v) To UBound(v)
For ii = LBound(v, 2) To UBound(v, 2)
If Len(v(i, ii)) <> 0 Then v(i, ii) = "|" & v(i, ii)
Next ii
Next i
Range("A1").Resize(UBound(v), UBound(v, 2)) = v
Application.ScreenUpdating = True
End Sub