I have a simple slideshow, with many slides. When I tried to add a sound effect with VBA to certain shapes for some reason animations are getting messed, some of them are disappeared at all.
I have simplified the sub down to one line:
Sub change_sound()
ActivePresentation.Slides(4).Shapes(3).AnimationSettings.SoundEffect.ImportFromFile "C:\Users\besik.ghviniashvili\Desktop\MacroABC\audio\kalia.wav"
End Sub
After I run this only line of code, the animations are transformed, durations are changed, motion paths and exit animations are cleared at all, and the animation on which i am trying to apply sound is changed from "float in" to "appear", but the sound effect is added to the animation.
I noticed that, if i add the same sound manually and run the same code nothing bad happens and with other sound file the animations are messing as usual. I tried moving sound files to other folder but nothing changed.