- 帖子
- 9
- 主題
- 3
- 精華
- 0
- 積分
- 15
- 點名
- 0
- 作業系統
- XP
- 軟體版本
- XP
- 閱讀權限
- 10
- 註冊時間
- 2016-4-29
- 最後登錄
- 2022-9-11
|
3#
發表於 2022-9-11 20:43
| 只看該作者
回復 2# quickfixer
謝謝分享。使用大大的方式Not IsErrorCells 會顯示沒有定義sub 或 function 請問大大有遇過嗎?
If Not IsErrorCells(Y, 58) > Not IsErrorCells(Y, 26) Then
For Y = 4 To 1674 '有幾行要改數字(後面要加自動數字)
If Not IsErrorCells(Y, 58) > Not IsErrorCells(Y, 26) Then
If Not IsErrorCells(Y, 57) > Not IsErrorCells(Y, 26) Then
If Not IsError(Cells(Y, 8) - Not IsErrorCells(Y, 26)) / Not IsErrorCells(Y, 26) > 0.025 Then
Cells(Y, 26).Interior.ColorIndex = 2
Else
Cells(Y, 26).Interior.ColorIndex = 18
End If
Else
If Not IsErrorCells(Y, 8) < Not IsErrorCells(Y, 26) Then
If Not IsErrorCells(Y, 11) > 0.5 Then
Cells(Y, 26).Interior.ColorIndex = 10
Else
Cells(Y, 26).Interior.ColorIndex = 4
End If
Else
Cells(Y, 26).Interior.ColorIndex = 27
End If
End If |
-
-
BUG2.jpg
(10.26 KB)
|