You created a With block, but terminated it with the End keyword instead of the End With statement. A With block must be terminated with an associated End With statement. The following demonstrates the correct composition of a With block.
With object statements End With
To correct this error
Using Conditional Statements | With Statement | Set Statement | If...Then...Else Statement | Select Case Statement