Skip to content

2006 年 9 月 28 日

EXCEL编辑的单元格所在行,整行或单元格高亮

工具,宏,visual basic 编辑器.

单击左侧的sheet名,
在出现的窗口中加入

'整行高亮

程序代码 程序代码

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.EntireRow.Interior.ColorIndex = 0 '先將儲存格底色恢復原狀
Target.EntireRow.Interior.ColorIndex = 19
End Sub




'单元格高亮

程序代码 程序代码

Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Cells.Interior.ColorIndex = 0 '先將儲存格底色恢復原狀
Target.Interior.ColorIndex = 19
End Sub

—–

Read more from Computer

Share your thoughts, post a comment.

(required)
(required)

Note: HTML is allowed. Your email address will never be published.

Subscribe to comments

Weboy
WordPress Blog
WordPress Themes