我的项目有一个伸展目标,超出了我当前的能力,但我希望这里有人能让我走上正确的轨道。我有以下代码:单独步行穿过标记的细胞
Public ErrorCount As Integer
Sub GeneralFormat()
ErrorCount = 0
VLookup
MacroFillAreas
color
NonZeroCompare
MustBe
MsgBox ("Number of Errors" & CStr(ErrorCount))
End Sub
我也有代码的以下部分:
Sub NonZeroCompare()
Dim i As Long
For i = 5 To 1000 Step 1
If Range("AK" & i).Value = "On" Then
If Range("AL" & i).Value = 0 And Range("AM" & i).Value = 0 Then
Range("AL" & i, "AM" & i).Interior.ColorIndex = 6
ErrorCount = ErrorCount + 1
End If
ElseIf Range("BC" & i).Value = 0 And Range("BD" & i).Value = 0 Then
Range("BC" & i, "BD" & i).Interior.ColorIndex = 6
ErrorCount = ErrorCount + 1
ElseIf Range("EJ" & i).Value = "On" Then
If Range("EK" & i).Value = 0 And Range("EL" & i).Value = 0 Then
Range("EK" & i, "EL" & i).Interior.ColorIndex = 6
ErrorCount = ErrorCount + 1
End If
ElseIf Range("ES" & i).Value = 0 And Range("ET" & i).Value = 0 Then
Range("ES" & i, "ET" & i).Interior.ColorIndex = 6
ErrorCount = ErrorCount + 1
ElseIf Range("FG" & i).Value = 0 And Range("FH" & i).Value = 0 Then
Range("FG" & i, "FH" & i).Interior.ColorIndex = 6
ErrorCount = ErrorCount + 1
End If
Next i
End Sub
我想要的效果是让用户可以跳转到有利于每个单元“的ErrorCount ”。我的工作簿中有数千个单元需要管理,因此能够在检查时跳出错误将会很好。如果可以通过键盘上的一个按键完成,它会更好,但按钮也可以工作。
有关如何执行此类操作的任何想法?另外,难度级别?关于从何种类型的功能开始的资源?最后一个问题:任何可以使用的原生特性都可以编码,不需要硬核编码?
我会建议写出一个规范和花钱让VBA专家为你做更新,它的可能性,但有很多事情要做,可能会很复杂。我简短你需要一个新的表格,保存每个错误的链接。 –