简体   繁体   中英

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?

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

应该这样做。

我认为这可行。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM