![]() |
|
#1
|
||||
|
||||
![]() I'm not sure on what exactly you are expecting so all we can do is simplify what your code is already doing to make it more straightforward. This won't work any differently to what you already had. Code:
Sub Macro1() With Selection.Find .Wrap = wdFindContinue .Text = ChrW(257) .Replacement.Text = "A" .Execute Replace:=wdReplaceAll .Text = ChrW(275) .Replacement.Text = "E" .Execute Replace:=wdReplaceAll .Text = ChrW(299) .Replacement.Text = "I" .Execute Replace:=wdReplaceAll .Text = ChrW(333) .Replacement.Text = "O" .Execute Replace:=wdReplaceAll .Text = ChrW(363) .Replacement.Text = "U" .Execute Replace:=wdReplaceAll End With End Sub
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
#2
|
|||
|
|||
![]()
Thank you for the response. I would like the program to be completed just in few lines.
if we can arrange the text to be replaced in one line and replacing text in another line, it shall be fine. Ex. text to be replaced (chaW(257), chaW(275),...) replacement text ( A, E,...) |
![]() |
Tags |
find and replace, vba in microsoft word, vba in word |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Kalü | Word VBA | 22 | 04-24-2018 05:35 AM |
![]() |
Dave T | Word VBA | 2 | 07-16-2015 11:23 PM |
![]() |
cdk270 | Word | 1 | 07-16-2015 01:56 AM |
![]() |
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
![]() |
tinfanide | Word | 2 | 10-06-2012 11:04 PM |