Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
585 views
in Technique[技术] by (71.8m points)

vba to add slide in powerpoint getting error ActiveX component

I want to add sides in existing PowerPoint but getting an error as ActiveX component can't create object.

Dim p As PowerPoint.Presentation
Set pres1 = Presentations.Add()
p.ApplyTemplate "D:New 2021 templatePPT TEMPLATE 2021 widescreen-2.pptx"
Dim s As Slide
Set s = p.Slides.AddSlide(2, pptLayout)
question from:https://stackoverflow.com/questions/65899012/vba-to-add-slide-in-powerpoint-getting-error-activex-component

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...