Rishek
06-28-2017, 10:06 AM
I need to reformat a table slightly to use for extracting values as described in this post. (http://www.vbaexpress.com/forum/showthread.php?59600-Extract-most-recent-quot-Header-quot-into-table)
Here's a sample with before and after values: 19614
Here's what I'd like to do:
1. Insert the "Header" values (e.g. "Coach1", "Coach2" etc.) into their respective boxes as shown. So that this:
Coach1
Pretend this row is merged
Pretend this row is merged
1:00 - 2:00pm
Bill
PLACE
becomes this
Coach1
Pretend this row is merged
Pretend this row is merged
1:00 - 2:00pm
Bill, Coach 1
PLACE
I also have a lot of rows in these boxes that direct the reader to "See SECTION". I would like to clear the contents of these cells as well as the cells to the immediate right and left so that this:
3:00 - 4:00pm
See ABOVE
PLACE
becomes three empty cells. I think that this is a fairly basic find and replace job, since any time the combination "See X" appears, it's a row that should be blank, but I'm not quite sure how to affect the cells on either side.
Help as always, appreciated.
Edit: Two additional pieces of information:
Coach11 has a blank space. Normally the words "Office Hours" appear here. I'm planning to eliminate this at an earlier formatting stage using a simple find/replace macro.
This table is typically the 4th table in a larger document, if that makes any difference to how one would code it.
Here's a sample with before and after values: 19614
Here's what I'd like to do:
1. Insert the "Header" values (e.g. "Coach1", "Coach2" etc.) into their respective boxes as shown. So that this:
Coach1
Pretend this row is merged
Pretend this row is merged
1:00 - 2:00pm
Bill
PLACE
becomes this
Coach1
Pretend this row is merged
Pretend this row is merged
1:00 - 2:00pm
Bill, Coach 1
PLACE
I also have a lot of rows in these boxes that direct the reader to "See SECTION". I would like to clear the contents of these cells as well as the cells to the immediate right and left so that this:
3:00 - 4:00pm
See ABOVE
PLACE
becomes three empty cells. I think that this is a fairly basic find and replace job, since any time the combination "See X" appears, it's a row that should be blank, but I'm not quite sure how to affect the cells on either side.
Help as always, appreciated.
Edit: Two additional pieces of information:
Coach11 has a blank space. Normally the words "Office Hours" appear here. I'm planning to eliminate this at an earlier formatting stage using a simple find/replace macro.
This table is typically the 4th table in a larger document, if that makes any difference to how one would code it.