IE Window Name

  • Thread starter Thread starter gelert
  • Start date Start date
G

gelert

Hi, using Excel VBA to open an IE window. It's a really long story, bu
I want to change the name of the window (that is, like one can do i
javascript with window.name="ZZZ").

So this is what I'd like to do, but it doesn't work:

Set ie = CreateObject("InternetExplorer.Application")
ie.window.name = "ZZZ"

any ideas on how I can change the window name from Excel?? I've looke
through the properties associated with the InternetExplorer object, an
none of them seem to help.

Thanks very much
 
Hello

you may try

Set IE = CreateObject("InternetExplorer.Application")
IE.Visible = True
IE.navigate "about:blank"
Do Until IE.readyState = READYSTATE_COMPLETE
DoEvents
Loop
IE.document.Title = "new name"


Regards ,
michel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top