JacekKotowski
New Member
- Joined
- Aug 23, 2013
- Messages
- 18
Let us imagine that in <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">ListObject</code> table rows there are some strings or some patterns I would like to find, and if found I would like to format the entire row. My example may be a dump from a recordset via VBA and ACE OLEDB into an excel <code style="margin: 0px; padding: 1px 5px; border: 0px; font-size: 13px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: pre-wrap; background-color: rgb(238, 238, 238);">ListObject</code> table and I would like to format it:
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">col1 | col2 | col3 | col4
-----+-----------+---------------+----------
1. | empty | AAA |
2. | empty | AAA001 | value
3. | empty | AAA002 | value
4. | Total | desc | value
5. | empty | BBB |
6. | empty | BBB001 | value
7. | empty | BBB002 | value
8. | Total | desc | value
</code>For instance I would like to
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, sans-serif; white-space: inherit;">col1 | col2 | col3 | col4
-----+-----------+---------------+----------
1. | empty | AAA |
2. | empty | AAA001 | value
3. | empty | AAA002 | value
4. | Total | desc | value
5. | empty | BBB |
6. | empty | BBB001 | value
7. | empty | BBB002 | value
8. | Total | desc | value
</code>For instance I would like to
- Bold the entire row in table where the word Total shows up.
- Insert a row above where the ??? (AAA, BBB,CCC), three letters string denoting a group shows up.
Last edited: