Hi All
I was kindly provided the code below on this forum by Mark,
I have a webpage with an iframed named myIframe on it, my question is can i get this to open up in the iframe on my page?
thanks
Gibbo
On Error Resume Next
Dim objFSO, oFO, oFolder, oFile, picDir, IE
Set objFSO = CreateObject("Scripting.FileSystemObject")
picDir = "C:\Users\markmac\Pictures"
Set oFolder = objFSO.GetFolder(picDir)
Set IE = CreateObject("InternetExplorer.Application")
IE.toolbar = false : IE.menubar = false : IE.statusbar = false : IE.Resizable = False
For Each oFile In oFolder.Files
If Right(oFile.Name,3) = "jpg" Or Right(oFile.Name,3) = "gif" Then
IE.Navigate2 "file://" & Replace(oFile.ParentFolder,"\","/")&"/" & oFile.Name
IE.Visible = True
WScript.Sleep 1000
End If
Next
Set IE = Nothing
Set objFSO = Nothing
I was kindly provided the code below on this forum by Mark,
I have a webpage with an iframed named myIframe on it, my question is can i get this to open up in the iframe on my page?
thanks
Gibbo
On Error Resume Next
Dim objFSO, oFO, oFolder, oFile, picDir, IE
Set objFSO = CreateObject("Scripting.FileSystemObject")
picDir = "C:\Users\markmac\Pictures"
Set oFolder = objFSO.GetFolder(picDir)
Set IE = CreateObject("InternetExplorer.Application")
IE.toolbar = false : IE.menubar = false : IE.statusbar = false : IE.Resizable = False
For Each oFile In oFolder.Files
If Right(oFile.Name,3) = "jpg" Or Right(oFile.Name,3) = "gif" Then
IE.Navigate2 "file://" & Replace(oFile.ParentFolder,"\","/")&"/" & oFile.Name
IE.Visible = True
WScript.Sleep 1000
End If
Next
Set IE = Nothing
Set objFSO = Nothing