AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,072
- Office Version
- 2019
- 2010
- Platform
- Windows
I was given this for a range from Y to the last used Col from CP in Row eRow,
And it's worked many times fine, until suddenly iRange.address is $Y37:$CP$37
So I assumed there was a rogue invisible character somewhere and tried this
Thinking that would fix it. But iRange address is still $Y37:$CP$37
What might cause this ?
VBA Code:
Set iRange = Range(Range("Y" & eRow), Range("CQ" & eRow).End(xlToLeft))
So I assumed there was a rogue invisible character somewhere and tried this
VBA Code:
kcol = 94
Do Until Val(Cells(eRow, kcol)) > 0
Cells(eRow, kcol) = ""
kcol = kcol - 1
Loop
Set iRange = Range(Range("Y" & eRow), Range("CQ" & eRow).End(xlToLeft))
What might cause this ?