I fill cells with 1d array defined as Variant. All 3 variables in this array are public string variables. Sometimes variable is VbNullString and goes as such into an array.
Unfortunately while selecting empty cells in Excel which are corresponding to VbNullString values, they are count as non blank and =IsBlank() function returns false. A check from VBA's immediate window doesn't detect anything in example cell:
?"check" & range("f4").Value & "character"
Result is: "checkcharacter"
How can I clear these cells to really be blank and change something in my macro not to populate them?
Dim results As Variant
results = Array(Company, Address, Phone)
With WS
Range(.Cells(resultCounter, 1), .Cells(resultCounter, UBound(results) + 1)).Value2 = results
End With
?[f4]or?[f4].Formula.=IsBlank()function returns false if the cell is not empty. what's the question? - SlaiISBLANK()returnsTruefor me on a cell which I set tovbNullStringusing VBA. It would help to update your question with a set of exact steps to reproduce your problem. - Tim Williams