Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If [g7] <> "" Then [c7:g7] = ""
If Not Intersect(Target, [C13:g17]) Is Nothing Then
[c7:g7].SpecialCells(4)(1) = Target
End If
End Sub作者: kelsie 時間: 2010-12-8 14:03
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If [g7] <> "" Then [c7:g8] = ""
If Not Intersect(Target, [C13:g17]) Is Nothing Then
[c7:g7].SpecialCells(4)(1) = Target
End If
If [g7] <> "" Then
[c8:g8] = [SMALL(c7:g7,column(a1:e5))*column(a1:e1)^0]
End If
End Sub作者: kelsie 時間: 2010-12-8 16:21
感謝oobird大大~~
If [g7] <> "" Then
[c8:g8] = [SMALL(c7:g7,column(a1:e5))*column(a1:e1)^0]
(這段的用意是??)
End If作者: oobird 時間: 2010-12-8 16:30
將oobird版主的程式碼改成這樣XD
就可以呈現兩列~
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
If [g8] <> "" Then [c7:g10] = ""
If Not Intersect(Target, [C13:g17]) Is Nothing Then
[c7:g8].SpecialCells(4)(1) = Target
End If
If [g8] <> "" Then
[c9:g9] = [SMALL(c7:g8,column(a1:e1))*column(a1:e1)^0]
[c10:g10] = [SMALL(c7:g8,column(f1:j1))*column(f1:j1)^0]
End If
End Sub作者: GBKEE 時間: 2010-12-10 08:44