Hi All,
My macro writing skills are not what they used to be and I find myself in need of a simple (?) macro.
I have a Word document which represents a test. The number of points allocated to each question is enclosed in square brackets, so something like [3]. I can’t recall if any question goes into double digits but I’d have to look back at all my tests to double check if that’s really true. If what’s enclosed between the brackets is not numeric or it’s more than 2 digits (more likely even more than 1 digit), then that occurrence should be skipped.
The macro I need would search thru an entire document (usually not more than 4-5 pages) and add the numbers between square brackets per the conditions above. At the end, it would display in a msg box the total number of points it found and maybe the number of questions it found.
One caveat: if the font of the square brackets is hidden, then the number should be ignored.
TIA
Fred