PDA

View Full Version : .text not quite correct



samuelimtech
02-12-2014, 03:18 AM
Hi all, first off thanks for any help.

I use the below code to find text and then create an index table with the reference and page no for me but i havent correctly defined what im looking for.
if for example I have 3 references e.g M:121 (p1), M:1213(p2) and M:1213.1(p3)
the macro will produce a table that looks like.
M:121 Page 1,2,3
M:1213 Page 2,3
M:1213.1 Page 1
obviosuly this isnt what im after. is there a way to change that small snippet to account for this?
I can post the whole code if required.

.Text = "[Mm]:[0-9.]{1,}"