M
Macro Hunter
I have two VB Codes that work fine seperated, but don't work combined. How
do I combine them?
CODE:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Section(0).BackColor = vbWhite Then
Me.Section(0).BackColor = 13434828
Else
Me.Section(0).BackColor = vbWhite
End If
If InStr([Inner Hydro Operational Flights per Minute], "Unassigned") = 1 Then
[Inner Hydro Operational Flights per Minute].ForeColor = 16777215 'white
Else
[Inner Hydro Operational Flights per Minute].ForeColor = 0
End If
End Sub
do I combine them?
CODE:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
If Me.Section(0).BackColor = vbWhite Then
Me.Section(0).BackColor = 13434828
Else
Me.Section(0).BackColor = vbWhite
End If
If InStr([Inner Hydro Operational Flights per Minute], "Unassigned") = 1 Then
[Inner Hydro Operational Flights per Minute].ForeColor = 16777215 'white
Else
[Inner Hydro Operational Flights per Minute].ForeColor = 0
End If
End Sub