Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hello there,
I'm fairly good with writing Excel, Word, & Access VBA. Is there a way to control IE using VBA code? Any info will be most welcome. Thanks in advance (TIA), JohnI |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi Johnl,
Yes. See this code: Dim IEObj As Object Sub Test() OpenIE "http://example.microsoft.com" End Sub Public Sub OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj .Visible = True .Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Sub ErrorHandler: Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") Resume Next End Sub HTH --- Orlando Magalhães Filho (So that you get best and rapid solution and all may benefit from the discussion, please reply within the newsgroup, not in email) "JohnI" escreveu na mensagem ... Hello there, I'm fairly good with writing Excel, Word, & Access VBA. Is there a way to control IE using VBA code? Any info will be most welcome. Thanks in advance (TIA), JohnI |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Orlando,
I tried out your code & it works just great. Thanks. Next question - how do I find the Internet Explorer Object Model? I noticed you used commands such as .Navigate & .Busy. If there are input boxes & buttons on a web page, can I control them. Also I want to copy text & paste it into Excel or Word. regards, JohnI "Orlando Magalhães Filho" wrote in message ... Hi Johnl, Yes. See this code: Dim IEObj As Object Sub Test() OpenIE "http://example.microsoft.com" End Sub Public Sub OpenIE(vURL As String) On Error GoTo ErrorHandler IEObj.Visible = True With IEObj .Visible = True .Navigate vURL Do Until Not .Busy DoEvents Loop End With Exit Sub ErrorHandler: Set IEObj = Nothing Set IEObj = CreateObject("InternetExplorer.Application") Resume Next End Sub HTH --- Orlando Magalhães Filho (So that you get best and rapid solution and all may benefit from the discussion, please reply within the newsgroup, not in email) "JohnI" escreveu na mensagem ... Hello there, I'm fairly good with writing Excel, Word, & Access VBA. Is there a way to control IE using VBA code? Any info will be most welcome. Thanks in advance (TIA), JohnI |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Internet Explorer 7 & Excel 2000 | Excel Discussion (Misc queries) | |||
How do I view Excel data in Internet Explorer? | Excel Discussion (Misc queries) | |||
Launching Excel From internet Explorer | Excel Discussion (Misc queries) | |||
Running Internet Explorer from Excel | Charts and Charting in Excel | |||
Hyperlink from Internet Explorer to Excel | Excel Discussion (Misc queries) |