Hello everyone!
I hope that everyone has had a good week.
Anyway, I have decided to undertake a personal project to program a little program (and learn a bit on the way as well!) that will use RegEx to pull certain types of items from a text document (eg. just the numbers), store them into an array of some sort 'x1, x2, x3, ...' and subsequently, search a specified directory (which contains dozens of excel and word documents) and find each instance of 'x1, x2, x3, ..." in every document. I am guessing that some kind of two dimensional array would be useful (if this is at all the correct approach) in order to store information about each 'hit' for 'x1' for example.
I envision this program to function somewhat like GREP whereby each 'hit' stored would contain the full line of text in which the 'hit' appears in any of the office documents as well as the line above and below. I also envision having a text-box like window pop up with the list of 'x1, x2, x3, ..." and if one were to be clicked, perhaps a new window would appear which would contain all 'hit' results for 'x1' which would then display the above-mentioned text lines for each instance. Of course, if this even at all possible, to include a link as well which would point directly to the cell and/or location in the office document would be most ideal.
I am hoping that I could obtain some pointers as I have done numerous searches regarding the above (eg. searching within office documents with VB) with little to no luck. I am currently plowing through a book on VB (I do have prior programming experience with other languages but not VB) and I am quickly getting the feeling that it may take me a long while without some guidance. I am mainly looking for some high-level guidance but would also much appreciate anything on the nitty-gritty if one feels so inclined.
If you got this far, thanks for even taking the time to read this post haha!
I hope that everyone has had a good week.
Anyway, I have decided to undertake a personal project to program a little program (and learn a bit on the way as well!) that will use RegEx to pull certain types of items from a text document (eg. just the numbers), store them into an array of some sort 'x1, x2, x3, ...' and subsequently, search a specified directory (which contains dozens of excel and word documents) and find each instance of 'x1, x2, x3, ..." in every document. I am guessing that some kind of two dimensional array would be useful (if this is at all the correct approach) in order to store information about each 'hit' for 'x1' for example.
I envision this program to function somewhat like GREP whereby each 'hit' stored would contain the full line of text in which the 'hit' appears in any of the office documents as well as the line above and below. I also envision having a text-box like window pop up with the list of 'x1, x2, x3, ..." and if one were to be clicked, perhaps a new window would appear which would contain all 'hit' results for 'x1' which would then display the above-mentioned text lines for each instance. Of course, if this even at all possible, to include a link as well which would point directly to the cell and/or location in the office document would be most ideal.
I am hoping that I could obtain some pointers as I have done numerous searches regarding the above (eg. searching within office documents with VB) with little to no luck. I am currently plowing through a book on VB (I do have prior programming experience with other languages but not VB) and I am quickly getting the feeling that it may take me a long while without some guidance. I am mainly looking for some high-level guidance but would also much appreciate anything on the nitty-gritty if one feels so inclined.
If you got this far, thanks for even taking the time to read this post haha!