Launching an Internet Explorer window

V

Valerie M

I've set up a dialog box to kick off a template. It includes a
commandbutton that users can click to display a Resource page, ie an
Internet Explorer window full of explanations and links to databases
etc. The idea is for users to Alt-Tab back and forth between the
Resource page and the document they're working on.

I'm using the following code to display the HTML page:

ActiveDocument.FollowHyperlink Address:=sHTTPAddress, NewWindow:=True

I've set NewWindow:=True so that Explorer opens in a restored state (ie
not maximised). I'd like to have more control over the size and
position of the Explorer window (so it's obvious to users that both
windows are available). Is this possible?
 
C

Chris Mahoney

I don't know whether this is possible from VBA, however you can resize
the browser window using JavaScript. I can't remember the code off the
top of my head, but it should be easy to find some.

Chris
 

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

Top