G
Guest
I have the following code:
Worksheets("Auto_Working").Range("A2:A11").Value = ListBox2.List
ListBox2 contains 2237, 2388
It produces:
A
1 Employees
2 2237
3 2388
4 #N/A
5 #N/A
6 #N/A
7 #N/A
8 #N/A
9 #N/A
10 #N/A
11 #N/A
When it gets to the #N/A processing data, it has to be manualy stopped.
Please help, I have tried the following to remove them.
For Each Cell In Range("A2:A11")
If LCase(Cell.Value) = "#N/A" Then
Cell.Resize(1, 5).ClearContents
End If
Next Cell
This caused a error, and could not continue or find the #N/A. It stopped in
it's tracks.
Worksheets("Auto_Working").Range("A2:A11").Value = ListBox2.List
ListBox2 contains 2237, 2388
It produces:
A
1 Employees
2 2237
3 2388
4 #N/A
5 #N/A
6 #N/A
7 #N/A
8 #N/A
9 #N/A
10 #N/A
11 #N/A
When it gets to the #N/A processing data, it has to be manualy stopped.
Please help, I have tried the following to remove them.
For Each Cell In Range("A2:A11")
If LCase(Cell.Value) = "#N/A" Then
Cell.Resize(1, 5).ClearContents
End If
Next Cell
This caused a error, and could not continue or find the #N/A. It stopped in
it's tracks.