Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我该如何做到这一点,在BeforeDoubleClick事件下,如果用户双击一个单元格,它将选择第 11 行到第 57 行的单元格。
如果可能,我可以将其设置为仅在“L”到“S”的列范围内工作吗?
Private Sub Worksheet_BeforeDoubleClick(ByVal Target As Range, Cancel As Boolean) 'change Range to suit your needs If Intersect(Target, Range("A1")) Then Range("L11:S57").Select End Sub
如果您想要整行类型Rows("11:57").Select对于整列,请键入Columns("L:S").Select
Rows("11:57").Select
Columns("L:S").Select