-
a quick question
Hi just a quick query
i have the following tags in my document
<row 1>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
</row 1>
<row 2>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="xxx" align="right"><p>ABCDEFGHI</p></Unit>
</row 2>
i need to number the "xxx" values withing the <row> and </row> tags.. So within each <row> </row> block the numbers should begin from 1 onwards.
example
<row 1>
<Unit colname="1" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="2" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="3" align="right"><p>ABCDEFGHI</p></Unit>
</row 1>
<row 2>
<Unit colname="1" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="2" align="right"><p>ABCDEFGHI</p></Unit>
<Unit colname="3" align="right"><p>ABCDEFGHI</p></Unit>
</row 2>...and so on.
is this possible?
-
Re: a quick question
Hey ... please give us a little more information about your application ...
Is this a Word document? Are all of your tags guaranteed to be on separate lines?
I haven't done many Word VBAs, but certainly this can be done. I can easily tell you how to do it in Excel ...
-
Re: a quick question
yes this is a word document. and yes the tags are guaranteed to be on separate lines
-
Re: a quick question
Is this just text in your document or are we looking at data in a Table?