I am new at this.
I need assistance with a macro I am trying to create.
I want to replace the letter m with the letter l in the word mike in a existing word file.
When I try running it I get
"Statement invalid outside Type Block"
Sub mikesproject()
'
' mikesproject Macro
' Macro created 3/19/2004 by mike
newdoc = "C:\work.txt"
Open newdoc For Random As #1
Replace("mike", "m", "l") As String
Close #1
End Sub
I need assistance with a macro I am trying to create.
I want to replace the letter m with the letter l in the word mike in a existing word file.
When I try running it I get
"Statement invalid outside Type Block"
Sub mikesproject()
'
' mikesproject Macro
' Macro created 3/19/2004 by mike
newdoc = "C:\work.txt"
Open newdoc For Random As #1
Replace("mike", "m", "l") As String
Close #1
End Sub