返回列表 上一主題 發帖

[發問] 請教點選儲存格的問題

回復 1# mark15jill

工作表模組
  1. Private Sub worksheet_selectionchange(ByVal target As Range)
  2. If target.Column = 1 Then
  3.    Cells.Interior.ColorIndex = xlNone
  4.    target.EntireRow.Interior.ColorIndex = 6
  5. End If
  6. With ActiveWindow
  7.   .SplitColumn = 1
  8.   .FreezePanes = True
  9. End With
  10. End Sub
複製代碼

TOP

回復 3# mark15jill


點A1 =>第1列變黃底
點A2 =>第2列變黃底
...
點A5 =>第5列變黃底

TOP

        靜思自在 : 盡多少本份,就得多少本事。
返回列表 上一主題