happyhungarian
Active Member
- Joined
- Jul 19, 2011
- Messages
- 252
- Office Version
- 365
- Platform
- Windows
Hi, I'm using the following code to find the end of a range but the problem I'm having is that range (the xlToRight) can change. Is there a way to instead have this select all the way to the right until it runs into a certain value? For example, if I have the word "END" in column T it would do the xlToRight all the way until Column T regardless if there were values between Column F (the "6" in the Cell function) and Column T?
Range(Cells(LR, 6), Cells(LR, 6).End(xlToRight)).Select
Range(Cells(LR, 6), Cells(LR, 6).End(xlToRight)).Select