I have been putting together a macro that opens a word document --> saves only data for forms as text file. I have two issues that I can't seem to understand:
1) The following code works fine when I select all word docs in a folder using the msoFileDialogFolderPicker but not when I choose only one file using GetOpenFilename.
The error states that the Word document is protected, but this is the case in both cases above. Its the same file so why it is giving me an error only when I use the GetOpenFilename method and is there a way to circumvent this issue.
2) I want to delete all the created text files that were generated during the process but my maco won't work.
Does anyone see what is wrong with it
Thanks in advance.