Can not seem to find a straight answer to this question and it seem that everyone that would transfer data between excel sheets that are located in different projects will at one time will have to deal with this. The issue is I do a lot of copy and paste to sheets from different project s and when I do so the blank cells that are carried over do not respond to any test correctly. I have trying for a very long time trying to make sense of all this information and have test samples found in google searches but nothing makes sence. Things work as they should if one is working on brand new worksheet, but as soon as you copy and paste all goes out the window.
Some test I have done look like this:
1) Copy a range of cells from one worksheet to another.
2) The sheet I past to does many types of calculations.
3) Some of these calculation need to check if there is a value in that blank cell to perform another action.
I have tried on a blank cell:
[vba]If IsEmpty(bw3) Then msgbox (“Its empty”)
If IsNumeric(Range("bw4")) Then msgbox (“it’s a number”)
If strName = vbNullString then (“Null”)
IF strName = "" then msbox ("there is a "" inside")
If Range("am7") = "" Then MsgBox ("there is a "" inside")
If Range("am7") Is Nothing Then MsgBox ("its Nothing")
If Range("am7") = Null Then MsgBox ("its Null")
If IsNull(Range("am7").Value) Then MsgBox ("its Null2")[/vba]
The question simply is what is it that is being carried over when one copies and paste a cell that is blank and not just holding an invisible blank space from one projectsheet to another. I assume that someone out there must now how to test for it and then get a actual result that holds true under different test.
Try testing before responding. And do not hit delete on the cell you are testing otherwise the test will work after doing so. The whole point I do not have the time to be deleting these blank cells I need to test for what is there and be done with it.
Thanks in advance