Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 05-16-2012, 04:44 AM
tinfanide tinfanide is offline Late Binding on SHDocVw Windows 7 64bit Late Binding on SHDocVw Office 2010 32bit
Expert
Late Binding on SHDocVw
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default Late Binding on SHDocVw

Code:
Option Explicit
Public oIE As SHDocVw.InternetExplorer
Public oSW As SHDocVw.ShellWindows

Sub test()

Set oIE = New SHDocVw.InternetExplorer
Set oSW = New SHDocVw.ShellWindows
oIE.Visible = True
MsgBox oIE.LocationURL

End Sub
I've used Early Binding with reference added to the library objects (HTML Objects & Internet Control)
But I wonder how to do it in Late Binding, especially for SHDocVw.Internet Explorer and SHDocVw.ShellWindows.

Code:
Dim oShell As Object, oShellWindows As Object
Set oShell = CreateObject("Shell.Application")
Set oShellWindows = oShell.windows

Reply With Quote
  #2  
Old 05-19-2012, 10:00 PM
tinfanide tinfanide is offline Late Binding on SHDocVw Windows 7 64bit Late Binding on SHDocVw Office 2010 32bit
Expert
Late Binding on SHDocVw
 
Join Date: Aug 2011
Posts: 312
tinfanide is on a distinguished road
Default

Code:
Option Explicit
Public oIE As Object
Public oSW As Object

Sub test()

Set oIE = CreateObject("InternetExplorer.Application")
Set oSW = CreateObject("Shell.Application")

For Each oIE In oSW.Windows
    MsgBox oIE.LocationURL
Next

End Sub
Found it.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Late Binding on SHDocVw Binding Problems? tinfanide Word VBA 1 02-03-2012 06:15 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:55 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft