dsouza26
08-10-2014, 04:35 AM
I want to create a macro to add a column with header 'Observed Behavior' to every table in the word document which has the column 'Input' in the table.
The value inside the column 'Observed Behavior' should be 'SAT' for all the rows in the those particular tables.
The new column 'Observed Behavior' should be the last column right next to the column 'Input'.
and it should not be added in any other table in the document.
eg:
original doc
ID
INPUT
1
A
2
B
ID
NAME
1
ABC
2
XYZ
After using macro:
ID
INPUT
OBSERVED BEHAVIOR
1
A
SAT
2
B
SAT
ID
NAME
1
ABC
2
XYZ
The value inside the column 'Observed Behavior' should be 'SAT' for all the rows in the those particular tables.
The new column 'Observed Behavior' should be the last column right next to the column 'Input'.
and it should not be added in any other table in the document.
eg:
original doc
ID
INPUT
1
A
2
B
ID
NAME
1
ABC
2
XYZ
After using macro:
ID
INPUT
OBSERVED BEHAVIOR
1
A
SAT
2
B
SAT
ID
NAME
1
ABC
2
XYZ