Code:
dim rep_name
rep_name= DataTable("xxx","yyy")
If rep_name = "Fleet Invoice and Details" Then
...
End If
where xxx= column name, yyy=sheet name
Other way: use Select Case Statement
Select Case rep_name
Case "All Listed Invoices"
...
Case "Fleet Invoice and Details"
...
Case Else
...
End Select