- ©«¤l
- 97
- ¥DÃD
- 33
- ºëµØ
- 0
- ¿n¤À
- 129
- ÂI¦W
- 0
- §@·~¨t²Î
- Win 7
- ³nÅ骩¥»
- office 2007
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- µù¥U®É¶¡
- 2019-5-7
- ³Ì«áµn¿ý
- 2022-8-25
|
¦^´_ 3# ziv976688
¥[Ó°j°é§a- Sub ¦Û°Ê¶ñ¦â_Click()
- Application.ScreenUpdating = False
-
- Dim databook As Workbook
- Path = ThisWorkbook.Path 'Àɮ׸ô®|
-
- For i = 1 To Sheets(1).Range("A300").End(xlUp).Row
- Filename = Cells(i, "A").Value 'ÀɦW
- Set databook = Workbooks.Open(Path & "\" & Filename) '¶}±ÒÀÉ®×
- With databook.Sheets(1)
- .Range("BA3:BF12").Interior.ColorIndex = 15
- .Range("BA15:BF24").Interior.ColorIndex = 15
- .Range("BA27:BF36").Interior.ColorIndex = 15
- .Range("BA39:BF48").Interior.ColorIndex = 15
- .Range("BA51:BF60").Interior.ColorIndex = 15
- .Range("BA63:BF72").Interior.ColorIndex = 15
- .Range("BA75:BF84").Interior.ColorIndex = 15
- End With
- With databook.Sheets(2)
- .Range("BA3:BF12").Interior.ColorIndex = 15
- .Range("BA15:BF24").Interior.ColorIndex = 15
- .Range("BA27:BF36").Interior.ColorIndex = 15
- .Range("BA39:BF48").Interior.ColorIndex = 15
- .Range("BA51:BF60").Interior.ColorIndex = 15
- .Range("BA63:BF72").Interior.ColorIndex = 15
- .Range("BA75:BF84").Interior.ColorIndex = 15
- End With
- databook.Save 'Àx¦s
- databook.Close 'Ãö³¬
- Next
-
- Application.ScreenUpdating = True
- End Sub
½Æ»s¥N½X |
|