![]() |
#1
|
|||
|
|||
![]()
Hi, Nice forum!
I am trying to translate some presentations, so I would like to make a macro, with several words that I do know they are in all presentations, so that it translate those words automatically. I have been looking at https://www.msofficeforums.com/power...place-vba.html but it does have the problem that it does not difference between capital letters and not. For example if I want to replace "How" but not "how" it does not work properly. Can anyone help me to solve this problem? Thanks in advanced, |
#2
|
|||
|
|||
![]()
Where you see
Replacewhat:=ReplaceString, WholeWords:=True) (several places) Use Replacewhat:=ReplaceString, WholeWords:=True, MatchCase:=msoTrue) The replace will only happen if the case is exactly the same. There'a a typo in Shyams code BTW Col should be Cols (2 places) |
#3
|
|||
|
|||
![]()
Perfect! That it was I was looking for. Thanks. I did add MatchCase in all the cases where WholeWords was in and now it does works.
I add the code here just in case anyone wants it. Thanks to Shyams ( http://skp.mvps.org/ppt00025.htm ) Now I can change different words at the same time. It is a bit slow, but much faster than manually. Thanks Quote:
|
#4
|
|||
|
|||
![]()
I have tried with 50 words at the same time and it does collapse.
¿Is there any way to make the code cleaner so that I can change at the same time a big amount of words? Thanks! |
![]() |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
bertietheblue | Word VBA | 12 | 11-04-2013 05:35 PM |
Find - Replace Macro using a table list | mdw | Word | 0 | 08-01-2013 04:36 PM |
![]() |
Jack | Word VBA | 2 | 12-12-2012 09:24 PM |
macro or find/replace | JamesVenhaus | Word | 2 | 02-27-2012 03:34 PM |
Find and Replace Macro - A Better Way | Tribos | Word VBA | 0 | 10-08-2008 03:22 AM |