DavidPooley
Technical User
Dear All,
I am investigating the feasibility of writing a Word Macro to extract information from a "Word" file so that it is available to another programming language. I have written a simple Macro to insert a "[?]" symbol, and designated it as a hyperlink. I can use the "find and replace" function to remove this from the final version (I need two versions – one with the inserted hyperlinks and one without mark up).
What I want to do is to replace the "[?]" symbol with approximately 30 different symbol types which in turn relate to different features in the text – that should be straight forward. I want the Macro to count the occurrences of each symbol type e.g. [*] , [!] etc in the document. I want this information to be available to another programming language such as "C", so the Macro needs to generate a file of some description. This is so that I can do a statistical analysis of my inserted symbols in any given Word document. I will need to remove all occurrences of my symbols from the final version. I also need to output a word count to my file, generated by the Macro.
I am not sure if it's possible to do this using a Word Macro and would be grateful for any advice your group can provide. (I have Word 2007)
Thanks
David
I am investigating the feasibility of writing a Word Macro to extract information from a "Word" file so that it is available to another programming language. I have written a simple Macro to insert a "[?]" symbol, and designated it as a hyperlink. I can use the "find and replace" function to remove this from the final version (I need two versions – one with the inserted hyperlinks and one without mark up).
What I want to do is to replace the "[?]" symbol with approximately 30 different symbol types which in turn relate to different features in the text – that should be straight forward. I want the Macro to count the occurrences of each symbol type e.g. [*] , [!] etc in the document. I want this information to be available to another programming language such as "C", so the Macro needs to generate a file of some description. This is so that I can do a statistical analysis of my inserted symbols in any given Word document. I will need to remove all occurrences of my symbols from the final version. I also need to output a word count to my file, generated by the Macro.
I am not sure if it's possible to do this using a Word Macro and would be grateful for any advice your group can provide. (I have Word 2007)
Thanks
David