Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Module Module1
Sub Main()
Dim oFile As String
oFile = Dir("c:\temp\*.doc")
Do While oFile <> ""
Dim WordApp As New Word.ApplicationClass
Dim zzz As Word.WdGoToItem = Word.WdGoToItem.wdGoToGraphic
WordApp.Documents.Open(FileName:="c:\temp\" & oFile)
With WordApp.Selection
.GoTo(Word.WdGoToItem.wdGoToGraphic, Count:=1)
.Delete()
.InlineShapes.AddPicture(FileName:="C:\temp\2.jpg")
End With
If WordApp.ActiveDocument.Saved = False Then WordApp.ActiveDocument.Save()
WordApp.ActiveDocument.Close()
oFile = Dir()
Loop
End Sub
End Module