Opening a Web Page

S

Stewart Walker

I've got a word document that under certain conditions
opens then creates an internetexplorer.application then
immediately navigates to a web page, is there anyway of
maximizing the internet explorer window through the word
macro.

Help!!!

Stewart
 
D

DA

Hi Stewart

Yes you can do this, by targeting the right task window.
For example, this will maximize all the IE windows :
----------
Sub MaxIE()
For Each Task In Tasks
If InStr(Task.Name, "Microsoft Internet Explorer") _>
0 Then
Task.Activate
Task.WindowState = wdWindowStateMaximize
End If
Next Task
End Sub
 

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