Hi,

I am creating a excel report for my project. I am trying to create IE automation object in excel so that while the process is going on it will display
wait message to the user.

i have coded

set ie = createobject("InternetExplorer.Applciation")
ie.visible = True
ie.width = 300
ie.height = 200

ie.document.body.innerHTML = "<p>Please wait while the report is generated</p>"

ie.quit

When i run this code it gives error as Method "Document" of object IWebbrowser2 failed.

can't figure it out whts the problem.
pls help

Thanks