Hi, how can I get a message box to display only the values that are true?
So if only DirFileSize2 and DirFileSize3 are true then the message box should look like this:
VBA Code:
If DirFileSize1 < 10000 Then
DirFile1 = "True"
Else: DirFile1 = "False"
End If
If DirFileSize2 < 10000 Then
DirFile2 = "True"
Else: DirFile2 = "False"
End If
If DirFileSize3 < 10000 Then
DirFile3 = "True"
Else: DirFile3 = "False"
End If
If DirFileSize4 < 10000 Then
DirFile4 = "True"
Else: DirFile4 = "False"
End If
If DirFileSize5 < 10000 Then
DirFile5 = "True"
Else: DirFile5 = "False"
End If
If DirFileSize6 < 10000 Then
DirFile6 = "True"
Else: DirFile6 = "False"
End If
So if only DirFileSize2 and DirFileSize3 are true then the message box should look like this:
VBA Code:
MsgBox DirFile2 & DirFile3, vbCritical, "Failed"