I think so. It is constructed as follows, I hope the logic is sound.
I know the SearchString, DocGrid, S2LI, Rownumba all work as I use them in other coding.
The only coding on this I don't fully comprehend is the loop.
the 1st for next sets the cells I want to check (rownumba starting at 53 and then moving every 4 cells)
This is basically a repetition of above set for the loop
This is the first line I want the grid to be produced on
The DoUntil users the x = 0 to 10 to cycle through the CellRef(x) - (Should this maybe "CellRef" & x ?)
Then with DocGrid the border formatting and cell merging is created and the values for CellRef(x) and it's offsets are placed into the relevant cells in Sheet1 (DocGrid)
Then this increases the i by one for each positive result in the CellRef search and then loops for the next
Then this increases the CellRef x for the next search criteria
Bookmarks