简体   繁体   中英

Select a dynamic range of cells

I'm trying to record a macro that will select a range of cells where the first cell (A3) is consistent, but the last cell changes from sheet to sheet. I started by recording a macro with the ending cell already selected, but it doesn't work from sheet to sheet. Any help is appreciated.

This will select from A3 to the bottom of data in column A:

Sub cutaneous()
    Range(Cells(3, 1), Cells(Rows.Count, 1).End(xlUp)).Select
End Sub

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