I have a folder containing around 20 questionnaire documents. Each document contains an identical set of 3 tables with 7 columns. The first row and first column of each table are headers. The other cells contain letter Xs which the user has inserted in response to each question as shown in the example below.
In the same folder, I have an identical document called Results.doc. What I need is a macro that will loop through the 20 questionnaires, and for each X, find the matching cell address in Results.doc and add a 1 to it so it would look like the Results.doc example below. It should not matter if the X is upper or lowercase.
I only have a very basic knowledge of macros, and help from a VBA expert would be much appreciated.
Jim’s Questionnaire.doc
Table 1......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1..............................X...........................................................
Q2..........................................................X...............................
Table 2......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1............................................X.............................................
Q2.................X........................................................................
Q3.......................................................................................X..
Q4............................................X.............................................
Table 3......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.........................................................................X................
=================================================
Results.doc
Table 1......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................3...........7.............3...........4..............2............1..
Q2.................5...........5.............2...........2..............6............0..
Table 2......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................9...........4.............5...........0..............0............2..
Q2.................1...........6.............0...........8..............4............1..
Q3.................4...........7.............3...........4..............0............2..
Q4.................2...........7.............1...........1..............3............6..
Table 3......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................3...........1.............6...........4..............5............1..
In the same folder, I have an identical document called Results.doc. What I need is a macro that will loop through the 20 questionnaires, and for each X, find the matching cell address in Results.doc and add a 1 to it so it would look like the Results.doc example below. It should not matter if the X is upper or lowercase.
I only have a very basic knowledge of macros, and help from a VBA expert would be much appreciated.
Jim’s Questionnaire.doc
Table 1......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1..............................X...........................................................
Q2..........................................................X...............................
Table 2......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1............................................X.............................................
Q2.................X........................................................................
Q3.......................................................................................X..
Q4............................................X.............................................
Table 3......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.........................................................................X................
=================================================
Results.doc
Table 1......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................3...........7.............3...........4..............2............1..
Q2.................5...........5.............2...........2..............6............0..
Table 2......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................9...........4.............5...........0..............0............2..
Q2.................1...........6.............0...........8..............4............1..
Q3.................4...........7.............3...........4..............0............2..
Q4.................2...........7.............1...........1..............3............6..
Table 3......Critical.....High.....Medium.....Low.....Negligible.....N/A
Q1.................3...........1.............6...........4..............5............1..