|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
replace with text contains a group number which is out of range Error Message
Hi,
I am facing problems while using wildcards in search in the replace with text i have a word which contains backslash its throwing error saying The replace with text contains a group number which is out of range the replace with text is "ssfert\ysfs" |
#2
|
||||
|
||||
Try:
"ssfert^92ysfs"
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#3
|
||||
|
||||
The problem is the backslash which has a particular role in a wildcard replace - use
ssfert^92ysfs instead. P.S. It seems Paul and I posted the same reply as the same time.
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#4
|
|||
|
|||
Is / equivalent to ^92 ?
Hi,
Is / equivalent to ^92 ? Because in the replace i am i am replacing it with backslash |
#5
|
||||
|
||||
Did you try it?
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#6
|
|||
|
|||
Replacing backslash with ^92 worked fine
This worked absolutely fine.
But have one more error on find pattern match This is the word <Hw$N\>> with opening and ending word boundry its throwing error for > |
#7
|
||||
|
||||
Quote:
Kindly don't post the same question in multiple threads. Thread closed.
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reserved error(-1517); there is no message for this error | ktest | Office | 1 | 02-12-2016 08:08 PM |
Group records - multiple IF stmts - Text After Group | baum12 | Mail Merge | 1 | 05-25-2015 12:57 AM |
Automation error Unknown error" message once they open the Excel file | hlina | Excel | 1 | 10-08-2013 09:14 PM |
Find and Replace using Excel range | dmarie123 | Word VBA | 15 | 04-02-2013 07:54 AM |
Find and Replace within range | anil3b2 | Word VBA | 3 | 12-01-2010 02:35 AM |