Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88126

I would like to select a range in a column only until a certain word/character is found

$
0
0

I need help in setting a range to a variable. Basically, I have a column with an "if" formula in it. The results in the formula returns either a "" or a number. Here is what I have currently. This selects all the rows since it "finds" the "" in the formula of the entire column.

Set rngEnd = wkLS.Columns(cLS).Find("").Offset(-1, 0)

How do I select only the range that contains numbers considering that the "" will only show up at the row after the last cell with a number?


Viewing all articles
Browse latest Browse all 88126

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>