i have text labels in column A:
A B C D E F
1 direct OT
2 vacation
3 taxes
4 indirect OT
5 Total salaries
6 commissions
7 variable commissions
8 Total Commissions
and then i have numerical data in columns b, c, d,e,f
I would like to create a macro or function that will bold and underline the
cells A:F for each row that the word "Total" appears in column A.
For example
column A row 5 has the word Total in it as a reslut, i would like cells
A5:F5 bolded and underlined
the same goes for A5, it contains the word "Total" as a result, I would like
A5:F5 bolded and underlined.
S.Y.M. Wong-A-Ton - 13 May 2006 10:56 GMT
You could use a repeating table to display your data and set conditional
formatting on each field within the table as follows:
- Double-click on one of the fields in the repeating table to open its
"Properties" dialog box.
- Click on the "Display" tab.
- Click on the "Conditional Formatting..." button.
- Click on the "Add" button.
- Select the field that represents your label field (column A) from the
first dropdown list box on the "Conditional Format" dialog box.
- Select "contains" in the second dropdown list box.
- Select "Type text..." from the third dropdown list box and then type the
text "Total" (without the quotes).
- Select the checkboxes for "Bold" and "Underline" under the "Then apply
this formatting" section.
- Click on "OK" when closing all open dialog boxes.
- Repeat all the steps for all of the other fields within the repeating table.
---
S.Y.M. Wong-A-Ton
> i have text labels in column A:
> A B C D E F
[quoted text clipped - 21 lines]
>
>