handouts in word via a macro

W

Wayne H

When I try to create handout files in Word from a PPT macro, the Word file
gets created and has Slide 1 text in it but then I get the error message
PowerPoint couldn't write to Microsoft Office Word. The following is code
snippet:

xName = Dir$(dirPPT & "*.ppt")
'Do While xName <> ""
Application.Presentations.Open (dirPPT & xName)
CommandBars.FindControl(Id:=684).Execute ' 684 is the control ID for
Word Notes
SendKeys "%b", True
SendKeys "{enter}", True
ActivePresentation.Close
xName = Dir$
'Loop
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top