Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How access frames on the web page through VBA

Status
Not open for further replies.

TingtingZhao

IS-IT--Management
Apr 5, 2007
2
US
Hi,

I have read the article about how to access to webpage items (like forms) through vba. Just got a question. if the webpage has different frames(each frame loads its own page.) how do I access to the each frame through VBA? Any suggestion will be appreciated.



Thanks
Johnson
 
TingtingZhao,
Using faq707-6399 as a starting point.
Code:
...
Set objFrames = objIE.document.Frames
Dim intFrame As Integer
For intFrame = 0 To objFrames.Length - 1
  Set objForms = objFrames(intFrame).document.Forms
  '...
Next intFrame
...

Hope this helps,
CMP

[small]For the best results do what I'm thinking, not what I'm saying.[/small]
(GMT-07:00) Mountain Time (US & Canada)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top