With the great help from here we cracked our first nutshell and I tried to use the first solution to overcome my next headache but it doesn't appear to work..
http://www.excelforum.com/excel-form...character.html
In essence we are trying to update 5000 templates with a new top and bottom so we thought if we extract the middle then add in the new top and bottom then this should overcome our template headache.
each template has a set of text characters that define the start and end so we know the bit in the middle is what we need.
for example.
<p><!-- ***************************************************************** Put your title in here ********-->
</p>
Middle template Info
<p>
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ END of description @@@@ --></p>
So what we tried was to use the previous solution from part 1
But it doesn't seem to work at the front it is catching information prior to the <!-- ***************************************************************** Put your title in here ********-->=TRIM(LEFT(SUBSTITUTE(MID(AF19,FIND("|",SUBSTITUTE(AF19,"<!-- ***************************************************************** Put your title in here ********-->","|",1))+1,
LEN(AF19)),"<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ END of description @@@@ -->",REPT(" ",LEN(AF19))),LEN(AF19)))
But it does seem to atleast on the small selection were testing on end at the right position.
<!-- @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ END of description @@@@ -->
Bookmarks