View Single Post
Old 06-24-2009, 11:19 PM   #8 (permalink)
macropod
TSF Enthusiast
 
Join Date: Apr 2008
Location: Australia
Posts: 563
OS: Vista


Re: Ms vba macro help-urgent

Hi Sally,

OK, I can see the code in the document, but where are the errors occuring? You previously said:
Quote:
there are two errors that is stopping me from running the program
There's a lot of code there, and I don't have any of the files referred to in:
Code:
Const Root As String = "C:\Prepositions"
Const perl As String = "C:\Perl\bin\perl.exe"
Const perlScript As String = Root & "\prepwin2.pl"
Const DoneFileLoc As String = Root & "\preposition.don"
Const OutputFile  As String = Root & "\outputFile.txt"
Const TargetFile As String = Root & "\targets2.txt"
on my system to test with.

Having said that, there's an obvious problem with your subroutine structure. 'Sub Prep()' (which doesn't actually seem to do anything) has no 'End Sub' statement (presumably required before 'Sub changeWordText(newWord As String)' and there are two 'End Sub' statements at the end of the code.
__________________
Cheers
macropod
(MS MVP -Word)
macropod is online now   Reply With Quote