![]() Start the test by making sure Word is closed, then open Word, attach the. To test this first you need to create a text file and set the path in the VBA code to that test file, make sure the text file has the words "original word" in it, and also create the menu so you can click that to run the code. dot file in Word, clicked on Tools > Customize > clicked Macro on the left side of the Commands tab and dragged the macro from the right side up to the menu bar. The code only stops running if I execute it when the code is run when Word is first started. ![]() If I close the text file and re-run the code it always runs perfectly. The file is opened and displayed in Word and then the code stops running. dot and run the code, then the code stops running as soon as the /text file is opened. The code runs fine -except- if Word is closed and then I open a Word file, attach the. ![]() The code opens an existing text file as plaintext and makes changes to the text file, saves the changes and closes the file. I am running vba code from a MS Word 2003.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |