PC Review


Reply
Thread Tools Rate Thread

access internet through VBA

 
 
thepowerofx@gmail.com
Guest
Posts: n/a
 
      26th Jun 2007
Hi All,

I'm writing a detailed program in excel vba compiling several
worksheets from various files into one. Some of these sheets are
generated by a private online server.

I would like help with writing code to access the internet and to
select the appropriate data to download by having vba automatically
select the appropriate CHECKBOXES on the website.

~newbie

 
Reply With Quote
 
 
 
 
meh2030@gmail.com
Guest
Posts: n/a
 
      26th Jun 2007
On Jun 26, 3:15 pm, thepower...@gmail.com wrote:
> Hi All,
>
> I'm writing a detailed program in excel vba compiling several
> worksheets from various files into one. Some of these sheets are
> generated by a private online server.
>
> I would like help with writing code to access the internet and to
> select the appropriate data to download by having vba automatically
> select the appropriate CHECKBOXES on the website.
>
> ~newbie


Start by searching something like "IE Automation" within the group.
There's lots of internet automation stuff within the group. I have
found code on clicking items from drop downs, clicking on images and
links, selecting check boxes, etc.

Matt

 
Reply With Quote
 
Ed
Guest
Posts: n/a
 
      26th Jun 2007
On Jun 26, 12:15 pm, thepower...@gmail.com wrote:
> I would like help with writing code to access the internet and to
> select the appropriate data to download by having vba automatically
> select the appropriate CHECKBOXES on the website.


I probably did it the very hard way (one of my trademarks!), but I
managed something similar in Word VBA. I used objects Dim'd without a
type to get to the IE Application object, the IE Document object,
iterate through all the input and link objects until I found the name
of the one I wanted set an object to it, and then finally wound up
with objCB.onclick to actuate the on-click event of the checkbox and
run the associated script.

I got a lot of help from the following web sites:
http://slayeroffice.com/tools/modi/v2.0/modi_help.html
A Java Bookmarklet that runs an on-screen object identifier
http://www.w3schools.com/htmldom/dom_intro.asp
A breakdown of the IE document and application objects
http://msdn2.microsoft.com/en-us/library/ms531073.aspx
Another look at the IE document object

Have fun!
Ed

 
Reply With Quote
 
=?Utf-8?B?Sm9hb1JvZHJpZ3Vlcw==?=
Guest
Posts: n/a
 
      26th Jul 2007
Hi,
this link is essential

http://msdn2.microsoft.com/en-us/library/Aa752084.aspx

and a piece of code....

Public wIE As InternetExplorer

Public Sub XXX()
Dim hDocIE As HTMLDocument

Set wIE = New InternetExplorer
If QVER Then
wIE.Visible = True
Else
wIE.Silent = True
''''' BUG MICROSOFT SENÃO NÃO HÁ EVENTOS
wIE.Left = -1 * (wIE.Width)
End If
wIE.navigate "www.XPTO.com"
.......
Do
Set hDocIE = Nothing
Set hDocIE = wIE.document
Sleep 100
SC = hDocIE.all.Length - 1
If hDocIE.all.Item(SC).readyState = "complete" Then Exit Do
If NN > 12 Then
TUNGA = True
Exit Do
End If
Sleep 1000
NN = NN + 1
Loop
If TUNGA Then Err.Raise 45600, , "Error...."


HTH
João Rodrigues


"Ed" wrote:

> On Jun 26, 12:15 pm, thepower...@gmail.com wrote:
> > I would like help with writing code to access the internet and to
> > select the appropriate data to download by having vba automatically
> > select the appropriate CHECKBOXES on the website.

>
> I probably did it the very hard way (one of my trademarks!), but I
> managed something similar in Word VBA. I used objects Dim'd without a
> type to get to the IE Application object, the IE Document object,
> iterate through all the input and link objects until I found the name
> of the one I wanted set an object to it, and then finally wound up
> with objCB.onclick to actuate the on-click event of the checkbox and
> run the associated script.
>
> I got a lot of help from the following web sites:
> http://slayeroffice.com/tools/modi/v2.0/modi_help.html
> A Java Bookmarklet that runs an on-screen object identifier
> http://www.w3schools.com/htmldom/dom_intro.asp
> A breakdown of the IE document and application objects
> http://msdn2.microsoft.com/en-us/library/ms531073.aspx#
> Another look at the IE document object
>
> Have fun!
> Ed
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mcafee Problems With Blocking Internet Access or Promoting Slow Internet Speeds MACE Windows XP New Users 1 26th Jul 2004 10:36 AM
No access to the Address Bar in Internet Properties/Internet Options to change Home/Web Page!! =?Utf-8?B?Um9taW8=?= Windows XP Basics 3 9th Mar 2004 09:12 AM
No access to the Address Bar in Internet Properties/Internet Options to change Home/Web Page!! =?Utf-8?B?Um9taW8=?= Windows XP General 2 8th Mar 2004 06:16 AM
No access to the Address Bar in Internet Properties/Internet Options to change Home/Web Page!! =?Utf-8?B?Um9taW8=?= Windows XP Help 1 8th Mar 2004 05:11 AM
How to:Remove restrections to access (Internet Options)from Internet Explorer Tool =?Utf-8?B?Um9u?= Windows XP General 3 8th Mar 2004 02:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:39 PM.