Jagjag90
02-04-2016, 07:56 AM
Hi All,
15350
Attached is a sample powerpoint slide where there are several text boxes (and/or tables) that have several different strings within them. I am using Powerpoint 2013.
I have been trying to come up with a VBA solution where for each unique string i can replace it with a unique value
e.g.
Replace {#1#NotionalCurr} with ${'Notional1'}$
and replace {#1#NotionalCurr2} with ${'NotionalAmount3'}$
and....
Within each powerpoint (attached is only one slide) there are multiple instances of the strings and i would need to replace them all. Additionally there are multiple powerpoints so i need to just have some VBA i can run in multiple files (i would open each one and run manually in each, as have to do some other checks in them anyway).
For word it was easy but for powerpoint it's proving almost intractable for me (very novice at VBA, usually just find what i need as sample code elsewhere online and change a few variables to fit).
I have looked for any/all sample code including "skp . mvps . org/ppt00025 . htm#2" (remove spaces, won't let me post otherwise) but none of it is able to do what i need. Problem with the Shyam code is not only can it not handle multiple replacements, but it doesn't seem to work with finding strings like #1#NotionalCurr.
Any help anyone can offer would be greatly appreciated.
15350
Attached is a sample powerpoint slide where there are several text boxes (and/or tables) that have several different strings within them. I am using Powerpoint 2013.
I have been trying to come up with a VBA solution where for each unique string i can replace it with a unique value
e.g.
Replace {#1#NotionalCurr} with ${'Notional1'}$
and replace {#1#NotionalCurr2} with ${'NotionalAmount3'}$
and....
Within each powerpoint (attached is only one slide) there are multiple instances of the strings and i would need to replace them all. Additionally there are multiple powerpoints so i need to just have some VBA i can run in multiple files (i would open each one and run manually in each, as have to do some other checks in them anyway).
For word it was easy but for powerpoint it's proving almost intractable for me (very novice at VBA, usually just find what i need as sample code elsewhere online and change a few variables to fit).
I have looked for any/all sample code including "skp . mvps . org/ppt00025 . htm#2" (remove spaces, won't let me post otherwise) but none of it is able to do what i need. Problem with the Shyam code is not only can it not handle multiple replacements, but it doesn't seem to work with finding strings like #1#NotionalCurr.
Any help anyone can offer would be greatly appreciated.