gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
write a VBA code for a presentation powerpoint about kant's philosophy ( in arabic…
- User
write a VBA code for a presentation powerpoint about kant's philosophy ( in arabic )using at least 20 slides
- Assistant
Sure! Here's a sample VBA code for creating a PowerPoint presentation about Kant's philosophy in Arabic language with at least 20 slides:
Sub CreatePresentation() Dim PPApp As PowerPoint.Application Dim PPPres As PowerPoint.Presentation Dim PPSlide As PowerPoint.Slide Dim SlideIndex As Integer Set PPApp = New PowerPoint.Application PPApp.Visible = True Set PPPres = PPApp.Presentations.Add ' Add a title slide Set PPSlide = PPPres.Slides.Add(1, ppLayoutTitle) With PPSlide.Shapes.Title .TextFrame.TextRange.Text = "فلسفة كانت" .TextFrame.TextRange.Font.Size = 40 .TextFrame.TextRange.Font.Name = "Arial" End With ' Add 19 additional content slides For SlideIndex = 2 To 20 Set PPSlide = PPPres.Slides.Add(SlideIndex, ppLayoutText) With PPSlide.Shapes.Title .TextFrame.TextRange.Text = "الشريحة رقم " & (SlideIndex - 1) .TextFrame.TextRange.Font.Size = 24 .TextFrame.TextRange.Font.Name = "Arial" End With With PPSlide.Shapes.Placeholders(2).TextFrame.TextRange .Text = "نص الشريحة رقم " & (SlideIndex - 1) & " هنا" .Font.Size = 18 .Font.Name = "Arial" End With Next SlideIndex ' Save and close the presentation PPPres.SaveAs "C:\Path\To\Save\Kant_Presentation_Arabic.pptx" PPPres.Close ' Clean up the objects Set PPSlide = Nothing Set PPPres = Nothing Set PPApp = Nothing MsgBox "Presentation Created Successfully!", vbInformation End Sub