E
Ed
I'm using Word 2000. I'm trying to open a document and set an object to it.
The doc opens fine - and then the macro resets! I'm stepping through with
F8 - when it executes the Open statement, the doc opens, and the next toggle
of the F8 key takes me back to the Sub line. What did I get wrong?
Sub Foo_ReplaceMyWord()
Dim doc As Document
Dim str As String
Dim rng As Range
str = "C:\Documents and Settings\emillis\Desktop\Test.doc"
Set doc = Application.Documents.Open(str)
Ed
The doc opens fine - and then the macro resets! I'm stepping through with
F8 - when it executes the Open statement, the doc opens, and the next toggle
of the F8 key takes me back to the Sub line. What did I get wrong?
Sub Foo_ReplaceMyWord()
Dim doc As Document
Dim str As String
Dim rng As Range
str = "C:\Documents and Settings\emillis\Desktop\Test.doc"
Set doc = Application.Documents.Open(str)
Ed