![]() |
#1
|
|||
|
|||
![]()
Please see the attachment for the question or see below:
******************************************* animals cat dog mouse fish (15-16) animals dog cat mouse fish (15-16) Find what: (cat)|(dog) Replace with: \2 \1 ******************************************* Blue is the original and red is the expected. The Find What returns that nothing is found. |
#2
|
||||
|
||||
![]()
See http://www.gmayor.com/replace_using_wildcards.htm
There is no pipe in the string so searching for one is not going to find it. Search instead for (cat) (dog) Replace with \2 \1
__________________
Graham Mayor - MS MVP (Word) (2002-2019) Visit my web site for more programming tips and ready made processes www.gmayor.com |
#3
|
|||
|
|||
![]()
Thanks for your reference.
It seems that in VBA both "|" and "()" are supported but not in Find what and Replace with. |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Mojo99 | Project | 4 | 08-21-2015 01:17 PM |
![]() |
pban92 | Drawing and Graphics | 1 | 02-23-2015 05:09 PM |
![]() |
differentdrummer | Excel | 3 | 12-10-2013 01:19 AM |
Word 2010 - Specify working area | Toni Chaffin | Word | 1 | 09-14-2012 02:46 AM |
![]() |
jetablack4 | Outlook | 2 | 07-05-2011 11:03 PM |