I want to make range in Excel VBA from the following:
- Find the cell with a phrase (this is expected to be unique per sheet)
- Make that entire row of used cells a Range object so I can use the Find command on it
1 is easy and done. Let's say it is cell $A$34. For 2 I want the last cell in row 34 with a value, say, cell $RS$34.
Then I can set variable = Range($B$34:$RS$34) and use range commands on it.
I can use the UsedRange.Column property to get the numeric equivalent of "RS" but is there a an inbuilt way to get the "RS"?
Edit:
Found solution in a not accepted answer here Function to convert column number to letter?
Use .Cells(Row, Column).Address to return a classic Excel cell reference. Forgot to think recursive enough when applying Excel commands.