![]() |
|
#1
|
||||
|
||||
![]()
David
I have no idea of what you are trying to do with your numbers as you don't appear to want to change the individual pages but do want to change spans but not deal with numbers that click over a second digit. Then 113-14 needs to become 115-34?? That one makes no sense at all to me. My code is using Word's built-in wildcard functionality. This is similar to regex but less powerful. If you want to search for a number with between 1 and 3 digits you look for "[0-9]{1,3}" so you are probably trying to find "[0-9]{1,3}-[0-9]{1,2}"
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Apologies for not being clear.
I was asked to update this index and noticed inconsistencies in the format of ranges eg. 128-0 & 128-30 and was trying to find the simplest way (for me) to deal with them, obviously 2 digits numbers after the dash is best. Really just need to increment all the page numbers by 2, hope that makes more sense. Thanks for any help p.s. Just realized another misunderstanding, the previous post I sent you highlighted in red the errors that were output from the script you sent and where not meant to indicate results that I expected - sorry for the confusion. Last edited by davidjm; 10-31-2021 at 06:13 AM. |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Marcia | Excel Programming | 5 | 05-04-2020 05:15 AM |
![]() |
wardw | Word | 7 | 05-07-2018 09:13 AM |
![]() |
puff | Word | 2 | 02-28-2018 11:04 AM |
![]() |
Anthon | Excel Programming | 1 | 11-03-2016 12:48 AM |
How to do multiple find and replace in string. | PRA007 | Word VBA | 2 | 01-06-2016 09:10 PM |