![]() |
|
|
|
#1
|
||||
|
||||
|
Which sounds like a study task... So how about you do some research on VBA arrays and looping through arrays. Post back with some evidence that you've made an attempt at solving this yourself and we can help you refine it.
__________________
Andrew Lockton Chrysalis Design, Melbourne Australia |
|
#2
|
|||
|
|||
|
Thank you all, for your proactive suggestions. I could solve it taking reference to your ideas.
Solved program is like this Sub FiRe() Application.ScreenUpdating = False Dim Tbl As Table, FndList, RepList, i As Long FndList = Array(ChrW(257), ChrW(275), ChrW(299), ChrW(333), ChrW(363)) RepList = Array("A", "E", "I", "O", "U") Selection.HomeKey Unit:=wdStory With ActiveDocument With Selection.Find For i = 0 To UBound(FndList) .Text = FndList(i) .Replacement.Text = RepList(i) .Execute Replace:=wdReplaceAll Next End With Application.ScreenUpdating = True End With End Sub Thank you all once again |
|
| Tags |
| find and replace, vba in microsoft word, vba in word |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
VBA Find&Replace all bold, itlaic, underlined and highlighted words/characters
|
Kalü | Word VBA | 22 | 04-24-2018 05:35 AM |
Find and replace mutiple spaces between lowercase words only
|
Dave T | Word VBA | 2 | 07-16-2015 11:23 PM |
how to replace to words with multiple formats
|
cdk270 | Word | 1 | 07-16-2015 01:56 AM |
Highlight and then replace multiple words
|
redhin | Word VBA | 5 | 03-05-2013 05:42 AM |
Find & Replace: substitute red-coloured words with underscores
|
tinfanide | Word | 2 | 10-06-2012 11:04 PM |