- ©«¤l
- 4901
- ¥DÃD
- 44
- ºëµØ
- 24
- ¿n¤À
- 4916
- ÂI¦W
- 278
- §@·~¨t²Î
- Windows 7
- ³nÅ骩¥»
- Office 20xx
- ¾\ŪÅv
- 150
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¥x¥_
- µù¥U®É¶¡
- 2010-4-30
- ³Ì«áµn¿ý
- 2024-12-24
|
¥»©«³Ì«á¥Ñ Hsieh ©ó 2014-1-28 23:47 ½s¿è
¦^´_ 2# leirex1201
°ò¥»¤W®æ¦¡ÃC¦âµLªk¨Ï¥Î°ò¥»¥\¯à¿ï¾ÜÃC¦â
¥²¶·§Q¥ÎVBA»²§U¤~¯à¹F¦¨
Thisworkbook¼Ò²Õµ{¦¡½X- Private Sub Workbook_SheetChange(ByVal Sh As Object, ByVal Target As Range)
- Dim A As Range
- Application.EnableEvents = False
- With Target
- If Sh.Cells(1, .Column) = "ÃC¦â" Then
- Set A = Sheets("¤½¥q²M³æ").[H:H].Find(Target, lookat:=xlWhole)
- If Not A Is Nothing Then _
- .Interior.ColorIndex = A.Interior.ColorIndex: .Offset(, 1) = A.Offset(, -1)
- End If
- DrowCell
- End With
- Application.EnableEvents = True
- End Sub
- Sub DrowCell()
- Dim A As Range, C As Range
- With Sheets("¤½¥q²M³æ")
- For Each Sh In Sheets
- If Sh.Name <> .Name Then
- Set A = Sh.Rows(1).Find("©ÒÄݤ½¥q", lookat:=xlWhole)
- For Each C In Sh.Range(A.Offset(1, 0), A.End(xlDown))
- If Not .[C:C].Find(C, lookat:=xlWhole) Is Nothing Then _
- C.Interior.ColorIndex = .[C:C].Find(C, lookat:=xlWhole).Offset(, 1).Interior.ColorIndex _
- Else C.Interior.ColorIndex = xlNone
- Next
- End If
- Next
- End With
- End Sub
½Æ»s¥N½X
¨D±Ï.rar (25.76 KB)
|
|