word notes from ppt

W

Wayne H

I am trying to generate Word notes files from a PPT macro. The Word document
starts to get created then I get an error message that PPT cannot write to
Word. The macro never makes it to the pres.Close statement. The following is
the relevant code:

xName = Dir$(dirPPT & "*.ppt")
Do While xName <> ""
Set pres = app.Presentations.Open(dirPPT & xName)
CommandBars.FindControl(Id:=684).Execute ' 684 is the control ID for
Word Notes
SendKeys "%b", True
SendKeys "{enter}", True
pres.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