Macro code to copy contents from a saved slide to current
Posted: Fri Sep 07, 2018 7:29 pm
I am trying to write a macro that copies the contents (objects, text, etc.) off a single slide in a file saved on the disk, and paste them automatically onto the slide that I am currently editing.
I have an equivalent set of code for Powerpoint, but I'm having difficulty translating this to LibreImpress. In Powerpoint macro basic, the technique would look like this:
oCurrentSlide = ActiveWindow.View.Slide.SlideIndex
...
ActiveWindow.View.GotoSlide (oSlideCopy)
...
Presentations(PPTcount).Slides(oSlideCopy).Shapes.SelectAll
ActiveWindow.Selection.Copy
...
ActiveWindow.View.GotoSlide (oCurrentSlide)
ActiveWindow.View.Paste
I'm wondering if anyone here could help direct me to equivalent functions / methods in OpenOffice / LibreImpress?
Thank you!
I have an equivalent set of code for Powerpoint, but I'm having difficulty translating this to LibreImpress. In Powerpoint macro basic, the technique would look like this:
oCurrentSlide = ActiveWindow.View.Slide.SlideIndex
...
ActiveWindow.View.GotoSlide (oSlideCopy)
...
Presentations(PPTcount).Slides(oSlideCopy).Shapes.SelectAll
ActiveWindow.Selection.Copy
...
ActiveWindow.View.GotoSlide (oCurrentSlide)
ActiveWindow.View.Paste
I'm wondering if anyone here could help direct me to equivalent functions / methods in OpenOffice / LibreImpress?
Thank you!