仿照原代码实现的。主要代码如下。
'D1-D4 审计结论后增加审计结论:经检查余额可确认。
If (InStr(1, f1.Path, "D1") Or InStr(1, f1.Path, "D2") Or InStr(1, f1.Path, "D3") Or InStr(1, f1.Path, "D4")) And InStr(1, mc, "审定表") Then
Set rng6 = sh.Cells.Find("审计结论", , , , , , 1)
If Not rng6 Is Nothing Then rng6.Value = br(6, 1)
End If
'D5-D6 审计结论后增加审计结论:经检查发生额可确认。
If (InStr(1, f1.Path, "D5") Or InStr(1, f1.Path, "D6")) And InStr(1, mc, "审定表") Then
Set rng7 = sh.Cells.Find("审计结论", , , , , , 1)
If Not rng7 Is Nothing Then rng7.Value = br(7, 1)
End If
|