欢迎来到天天文库
浏览记录
ID:8819454
大小:84.89 KB
页数:2页
时间:2018-04-08
《excel选中单元格行列自动变色设置》由会员上传分享,免费在线阅读,更多相关内容在应用文档-天天文库。
1、Excel行列选中变色1.操作a)ALT+F11,进入VBE编辑器b)双击Sheet1标签,粘贴如下代码:2.代码PrivateSubWorksheet_SelectionChange(ByValTargetAsExcel.Range)OnErrorResumeNextCells.FormatConditions.DeleteWithTarget.EntireRow.FormatConditions.Delete.AddxlExpression,,"TRUE".Item(1).Interior.ColorIndex=35EndWithWithTarget.E
2、ntireColumn.FormatConditions.Delete.AddxlExpression,,"TRUE".Item(1).Interior.ColorIndex=35EndWithEndSub3.颜色表1.效果预览
此文档下载收益归作者所有