I'm trying to set a final target frame in one line, but somehow IE.Document works only if it's assigned to a variable.
So the following statement works:
Set IEDoc = IE.Document
Set objFrameMain = IEDoc.frames("frame_name")
while this one fails with Automation error:
Set objFrameMain = IE.Document.frames("frame_name")
Why could it be so?