AlexanderBB
Well-known Member
- Joined
- Jul 1, 2009
- Messages
- 2,052
- Office Version
- 2019
- 2010
- Platform
- Windows
I can't find the exact thread here where I was given
This catches all values in row from Y to CP, ignoring blanks. I've been using it and getting perfect results until a situation
where nothing was in that row. Say it's row 53, I get
$X$53:$Y$53
The X column is wrong. And I'm unsure how best to correct, and still rely on that instruction.
VBA Code:
Set cr = .Range(.Range("Y" & Row), .Range("CQ" & Row).End(xlToLeft))
where nothing was in that row. Say it's row 53, I get
$X$53:$Y$53
The X column is wrong. And I'm unsure how best to correct, and still rely on that instruction.