omega
omega

Reputation: 43963

How to select a specific range in excel vba?

I'm trying to select a Range() of column H, from H10 to all the way to bottom of H (unbounded). I tried Range("H10:H") but it doesn't work. Does anyone know?

Upvotes: 0

Views: 68

Answers (2)

Joe Wolf
Joe Wolf

Reputation: 71

I think this works.

ActiveWorkbook.Worksheets("name").Cells(1, Columns.Count).End(xlToLeft).Column

Upvotes: 0

Tim Williams
Tim Williams

Reputation: 166940

 Range("H10:H" & Rows.Count)

should do it.

Upvotes: 2

Related Questions