Hello,
I am trying to figure out the Syntax for an If Statement.
Code:
"If LastCell = "$T$10" Or "$T$11" Then
ActiveWindow.SelectedSheets.Delete
End If"
It works when I have this:
If LastCell = "$T$10" Then
ActiveWindow.SelectedSheets.Delete
End If"
But, when I add the "Or $T$11" I get a Type Mismatch Error.
If anyone can help it would be greatly appreciated.
Lee
I am trying to figure out the Syntax for an If Statement.
Code:
"If LastCell = "$T$10" Or "$T$11" Then
ActiveWindow.SelectedSheets.Delete
End If"
It works when I have this:
If LastCell = "$T$10" Then
ActiveWindow.SelectedSheets.Delete
End If"
But, when I add the "Or $T$11" I get a Type Mismatch Error.
If anyone can help it would be greatly appreciated.
Lee