most
Board Regular
- Joined
- Feb 22, 2011
- Messages
- 107
- Office Version
- 365
- 2019
- Platform
- Windows
- Mobile
I have script which acts irrational, it randomly create data.
In trying to figure out why I notice that there a data in a cell which shouldn't be there.
Prtscr 1
Prtscr 2 - When I press Delete on my keyboard on the second row/second column , the text in first column appears.
My conclusion is that the second column row contains something, right?
Debug.Print Len(ActiveCell.Value) returns 0
This is the code, it's secondary important since this post is more about me figuring out how can see hidden characters.
But If anyone see that this generates a hidden character, I of course appreciates feedback. And of course it's a lot of more code.
In trying to figure out why I notice that there a data in a cell which shouldn't be there.
Prtscr 1
Prtscr 2 - When I press Delete on my keyboard on the second row/second column , the text in first column appears.
My conclusion is that the second column row contains something, right?
Debug.Print Len(ActiveCell.Value) returns 0
This is the code, it's secondary important since this post is more about me figuring out how can see hidden characters.
But If anyone see that this generates a hidden character, I of course appreciates feedback. And of course it's a lot of more code.
VBA Code:
'Loop1
For r1 = 35 To 2 Step -1
Set c1 = Sheets("P").Range("G" & r1)
If Not IsEmpty(c1.Value) Then
If c1.Value = c1.Offset(1, 0).Value Then
c1.Offset(0, 1).Value = c1.Offset(0, 1).Value + c1.Offset(1, 1).Value
c1.Offset(1, 1).Value = ""
Else
End If
Else
End If
Next r1
'Loop2
For r2 = 35 To 2 Step -1
Set c2 = Sheets("P").Range("G" & r2)
If Not IsEmpty(c2.Value) Then
If c2.Value = c2.Offset(1, 0).Value Then
c2.Offset(0, 2).Value = c2.Offset(0, 2).Value + c2.Offset(1, 2).Value
c2.Offset(1, 2).Value = ""
Else
End If
Else
End If
Next r2