Function 串刺し合計(ByVal mySheet As String, ByVal myRange As String)
'例:=串刺し合計("Sheet","A1")→「Sheet」文字列を含むシートの「A1」セルを合計
Application.Volatile 'コメント
Dim curSheet As Object
Dim myResult As Long
For Each curSheet In Sheets
If StrConv(curSheet.Name, vbNarrow) Like "*" & StrConv(mySheet, vbNarrow) & "*" Then
myResult = myResult + curSheet.Range(myRange).Value
End If
Next curSheet
串刺し合計 = myResult
End Function