问题补充说明:题要种利用宏损害原填充色效跟面图片 另外要安装插件通excel本身解决
事件代来自码,放在sheet里
Pri真封分倍价福若甚以vate Sub Worksheet_SelectionChange(ByVal Target As Range)On Error Resume Next ActiveWorkbook.Names.Ad布晶饭厚操觉d Name:="sRow", RefersToR1C1:=Tar360问答get.Row ActiveWorkbook.Names.Add Na船me:="eRow", RefersToR1C1:=Selection.Cells(Selection.Cells.Count).Row ActiveWorkbook.犯许Names.Add Name:="sColumn", RefersToR1C1:=Target.ColumnActiveWorkbook.Names.Add Name:="eColumn", RefersToR1C1:=Selection.Cells(Selection.Cells.Count).Column
End Sub
然后选中要设置的区域,设置条件格式,公式
=OR(AND(ROW()>=sRow,ROW()<=eRow),AND回深吸经头确新技(COLUMN()>=sColumn,COLUMN()<=eColumn))
不要全选工作表设置条件格式,会出错