Developers may notice an unexpected behavior of IE automation code while usingWith…End With.
Developers may notice that sometime code can give error or it open a blank IE tab.
If developers are trying toassign any values in with…End With than it can cause this issue.
The reason is that,
When using a With…End With structure, we can only read the values of members or invoke methods.
Reference: