简体   繁体   中英

Select EntireColumn from ActiveCell, except first 3 rows

I would like to select a complete column from an ActiveCell except the first 3 rows, because they are always filled with descriptions/headerlines. I know ActiveCell and EntireColumn, but i don't know how to combine the commands to come to a solution.

So I have 10 columns to be filled with data, and when the user wants to work on a specific column, i would love to have it so he just needs to click on any cell in the column and then my macro selects the rest.

Perhaps the entire column is not the best idea, since I need to add comments to EVERY cell and Excel does not like that. 1000 rows will do it.

列选择

Something like this code:

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
    ActiveCell.EntireColumn.Resize(Rows.Count - 3).Offset(3).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