|
<p> </p><p>在sheet1里有这个帮忙看看</p><p> rivate Sub Worksheet_SelectionChange(ByVal Target As Range)<br/> Application.Volatile<br/> Range("A1:G5").Calculate<br/>End Sub</p><p>是不是调用了这个模块??</p><p>模块是这个请帮忙解释一下</p><p>Function ZZ(InputRange As Range, ColorRange As Range) As Double<br/>Dim cl As Range, TempSum As Double, ColorIndex As Integer<br/> Application.Volatile<br/> ColorIndex = ColorRange.Cells(1, 1).Interior.ColorIndex<br/> TempSum = 0<br/> On Error Resume Next<br/> For Each cl In InputRange.Cells<br/> If cl.Interior.ColorIndex = ColorIndex Then<br/> TempSum = TempSum + cl.Value<br/> End If<br/> Next cl<br/> On Error GoTo 0<br/> Set cl = Nothing<br/> ZZ = TempSum<br/>End Function<br/></p>
lf1JMX8u.rar
(8.95 KB, 下载次数: 6)
|
|