Excel精英培训网

 找回密码
 注册
数据透视表40+个常用小技巧,让你一次学会!
查看: 1668|回复: 7

[已解决]求助各位老师怎么写点过哪个单元格的行就有底色的代码 谢谢

[复制链接]
发表于 2013-1-6 10:34 | 显示全部楼层 |阅读模式
求助各位老师怎么写点过哪个单元格的行就有底色的代码  谢谢
2013-01-06_103435.png
最佳答案
2013-1-6 10:48
zhoucs00 发表于 2013-1-6 10:45
外套工作表Selection_Change事件,嘿嘿

呵呵 那就写完整一点吧
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Selection.EntireRow.Interior.ColorIndex = 4
End Sub

发表于 2013-1-6 10:41 | 显示全部楼层
Sub dise()
Selection.EntireRow.Interior.ColorIndex = 4
End Sub
回复

使用道具 举报

发表于 2013-1-6 10:45 | 显示全部楼层
孤单无所谓 发表于 2013-1-6 10:41
Sub dise()
Selection.EntireRow.Interior.ColorIndex = 4
End Sub

外套工作表Selection_Change事件,嘿嘿
回复

使用道具 举报

发表于 2013-1-6 10:48 | 显示全部楼层    本楼为最佳答案   
zhoucs00 发表于 2013-1-6 10:45
外套工作表Selection_Change事件,嘿嘿

呵呵 那就写完整一点吧
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Selection.EntireRow.Interior.ColorIndex = 4
End Sub

评分

参与人数 1 +1 收起 理由
qinhuan66 + 1 很给力!

查看全部评分

回复

使用道具 举报

 楼主| 发表于 2013-1-6 10:49 | 显示全部楼层
孤单无所谓 发表于 2013-1-6 10:48
呵呵 那就写完整一点吧
Private Sub Worksheet_SelectionChange(ByVal Target As Range)
Selection.Ent ...

谢谢老师的热情帮忙
回复

使用道具 举报

发表于 2013-1-6 10:54 | 显示全部楼层
qinhuan66 发表于 2013-1-6 10:49
谢谢老师的热情帮忙

不谢。。。。。。。。。如果满意能不能在我楼层的右上角 设个最佳哇{:912:}
回复

使用道具 举报

 楼主| 发表于 2013-1-6 11:03 | 显示全部楼层
孤单无所谓 发表于 2013-1-6 10:54
不谢。。。。。。。。。如果满意能不能在我楼层的右上角 设个最佳哇

能不能在ThisWorkbook中写入呢?
回复

使用道具 举报

发表于 2013-1-6 11:09 | 显示全部楼层
qinhuan66 发表于 2013-1-6 11:03
能不能在ThisWorkbook中写入呢?

可以啊  上升到工作簿事件
Private Sub Workbook_SheetSelectionChange(ByVal Sh As Object, ByVal Target As Range)
Selection.EntireRow.Interior.ColorIndex = 4
  End Sub
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|Excel精英培训 ( 豫ICP备11015029号 )

GMT+8, 2024-5-16 07:09 , Processed in 0.329097 second(s), 17 queries , Gzip On, Yac On.

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表