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.
[blue]Documents("[i]Path\Name[/i]").Activate[/blue]
[blue]With Documents("[i]Path\Name[/i]")
[green]' Do your stuff with the document[/green]
End With[/blue]
Dim ThisDoc As Document
Dim ThatDoc As Document
Dim TheOtherDoc As Document
Set TheOtherDoc = ActiveDocument
Set ThatDoc = Documents("Path\Name")
Set ThisDoc = Documents("Path|Name")
Dim ThisDoc As Document
Dim ThatDoc As Document
Dim TheOtherDoc As Document
Set ThisDoc = ActiveDocument
' open the next file
Application.Documents.Open Filename:="C:\blahblah\blah\ThatDoc.doc"
' this is now the active document
' so set IT to be an object
Set ThatDoc = ActiveDocument
' open the next file
Application.Documents.Open Filename:="C:\blahblah\blah\TheOtherDoc.doc"
' this is now the active document
' so set IT to be an object
Set TheOtherDoc = ActiveDocument
With ThisDoc
...whatever
End With
With ThatDoc
....whatever
End With
With TheOtherDoc
...whatever
Set ThisDoc = Nothing
Set ThatDoc = Nothing
Set TheOtherDoc = Nothing