間違いに気づきました> If TargetFileOK(r) = True Then> If TargetFileOK(r + 1) = True Then> If TargetFileOK(r + 2) = True ThenこのIf文のrは別の変数にしないとダメですね!!