From: Ed on
Is it possible in a Word 2003 macro to set objects to the the IE
application and the current web page? I'd like to check a checkbox and
activate the NextPage link (as long as there's a next page to go to).

I found some references to scripts that can do this, but I can't
figure them out. I can't find an InternetExplorer library to reference
in the VBE.

Any help is greatly appreciated.

Ed

From: pranavsv on
On May 14, 8:29 pm, Ed <prof_ofw...(a)yahoo.com> wrote:
> Is it possible in a Word 2003 macro to set objects to the the IE
> application and the current web page? I'd like to check a checkbox and
> activate the NextPage link (as long as there's a next page to go to).
>
> I found some references to scripts that can do this, but I can't
> figure them out. I can't find an InternetExplorer library to reference
> in the VBE.
>
> Any help is greatly appreciated.
>
> Ed

I have never seen IE library in Word, however you can try using
SendKeys. It looks like a primitive approach, but hey..it might work.
Thanks.

From: Michael Bednarek on
On 14 May 2007 08:29:14 -0700, Ed wrote in
microsoft.public.word.vba.general:

>Is it possible in a Word 2003 macro to set objects to the the IE
>application and the current web page? I'd like to check a checkbox and
>activate the NextPage link (as long as there's a next page to go to).
>
>I found some references to scripts that can do this, but I can't
>figure them out. I can't find an InternetExplorer library to reference
>in the VBE.

What code do you have so far? You need to start with
CreateObject("InternetExplorer.Application")

Then methods/properties like .Navigate, .Busy, .ReadyState are probably
useful, and .Document.Forms() and its properties and the method .Submit
or Submit.Click might help.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
From: Ed on
Hi Ed,

Never really used it myself so don't know if this will help but found this
link:

http://www.tek-tips.com/viewthread.cfm?qid=1093969&page=7

with this at the bottom of it:

Reference 'Microsoft Internet Controls' (shdocvw.dll) and 'Microsoft HTML
Object Library' (MSHTML.tlb) libraries, look at 'InternetExplorer',
'WebBrowser' and 'HTMLDocument' classes in Object Browser. This can be a
starting point in digging in the object model.

Regards.

Another Ed

"Ed" wrote:

> Is it possible in a Word 2003 macro to set objects to the the IE
> application and the current web page? I'd like to check a checkbox and
> activate the NextPage link (as long as there's a next page to go to).
>
> I found some references to scripts that can do this, but I can't
> figure them out. I can't find an InternetExplorer library to reference
> in the VBE.
>
> Any help is greatly appreciated.
>
> Ed
>
>
From: Ed on
Hi, Michael.

> What code do you have so far? You need to start with
> CreateObject("InternetExplorer.Application")
>
> Then methods/properties like .Navigate, .Busy, .ReadyState are probably
> useful, and .Document.Forms() and its properties and the method .Submit
> or Submit.Click might help.

I have

Sub Try_IE()

Dim objIE
Set objIE = CreateObject("InternetExplorer.Application")
objIE.Visible = True

End Sub

It opens a brand-new blank IE page with no URL. I can't see how to
set an object to the currently displayed web page. I don't want to
navigate to a page - I need to work with the web page already open.
What am I missing?

Ed