PDA

View Full Version : VBA For Exporting Selectable, Manipulated MS Word Headings To Powerpoint 2019



SuperNova9
07-14-2020, 09:27 PM
Have a MS Word 2019 document with Headings Levels 1 to 6.
Want to get Powerpoint 2019 slides with, say, Slide Title as Heading 1 & Heading 2 (a concatenation). OR
Just export Headings 1 and Headings 2 ONLY.
Am aware of the 'Send To Microsoft Powerpoint' ribbon button. But it lacks the functionality to manipulate the headings as stated. It sends all headings in a fixed manner.
Long searches for VBA code failed. Any help greatly appreciated.

heedaf
07-20-2020, 06:22 PM
Have you added the reference of Power Point in Word?

SuperNova9
07-20-2020, 07:06 PM
Yes.
I do not know how to store the MS Word Headings in variables, say, h1 = Heading 1, h2 = Heading 2... etc.
Then concatenate them, store in a variable say, j1 = h1 & h2.
Then send j1 to populate Powerpoint Slide 1, Title.
Repeat for next Heading 1, Heading 2. j1 to populate Powerpoint Slide 2, Title.
Thank you.