ppDisp is actually nothing, but to understand why that is, you need to understand a bit about how events work.
Events are raised by procedures like normal functions, in VBA you'd do this with the RaiseEvent statement. These events then create subs in the parent object, so you see:
So conceptually, what's actually happening within the WebBrowser1 object:
So the above code raises the event, which manifests in your WebBrowser1_NewWindow2 sub which you then assign values to its parameters e.g
These values are then passed to the calling sub which raised the event and used in its own code as shown above, it's not massively helpful since you can't check the values of ppDisp since it's nothing, but you can at least understand why.
You're therefore going to need to figure out a work-around, but I can't really suggest anything since I don't know how the actual new windows are being raised
Bookmarks