PowerPoint VBA-Makro-Generator mit Copilot
Von Wikiprompt, der freien Prompt-Enzyklopädie
PowerPoint VBA-Makro-Generator mit Copilot Eine Eingabeaufforderungsvorlage, die Copilot anweist, ein Thema zu recherchieren und eine PowerPoint-Makro mit einer bestimmten Anzahl von Folien zu generieren, wobei jede Folie einen Titel und einen kurzen Text enthält.
Zugehörige Medien
Prompt-InhaltSpeichern
🌐
Sub CreateTopicSlides()
Dim pptPres As Presentation
Dim sld As Slide
Dim slideIndex As Integer
Dim titleText As String
Dim bodyText As String
Dim i As Integer
Set pptPres = ActivePresentation
' Define the number of slides (adjust as needed)
Const NUM_SLIDES As Integer = 5
' Loop to create slides
For i = 1 To NUM_SLIDES
' Add a new slide with Title and Content layout
Set sld = pptPres.Slides.Add(pptPres.Slides.Count + 1, ppLayoutTitleAndContent)
' Set title text (customize per slide)
Select Case i
Case 1
titleText = "Introduction to [TOPIC]"
bodyText = "Overview of key concepts and relevance."
Case 2
titleText = "History and Background"
bodyText = "Timeline of major developments and milestones."
Case 3
titleText = "Core Principles"
bodyText = "Fundamental rules and guidelines that define [TOPIC]."
Case 4
titleText = "Practical Applications"
bodyText = "Real-world use cases and examples."
Case 5
titleText = "Future Trends"
bodyText = "Emerging directions and potential advancements."
End Select
' Set title
sld.Shapes.Title.TextFrame.TextRange.Text = titleText
' Set body text (placeholder for content)
sld.Shapes.Placeholders(2).TextFrame.TextRange.Text = bodyText
Next i
MsgBox "Created " & NUM_SLIDES & " slides about [TOPIC].", vbInformation
End Sub
Melde dich an, um den vollständigen Prompt zu sehen
Weiter mit:
Mit der Anmeldung akzeptierst du unsere Nutzungsbedingungen und Datenschutz
Verwendung
Dieser Prompt ist für die Verwendung mit productivity gedacht. Kopiere den Inhalt oben und füge ihn in dein bevorzugtes KI-Tool ein.
Für beste Ergebnisse passe die Platzhalter (eckige Klammern oder Großbuchstaben) an deine Anforderungen an.
Referenzen
- Kategorie: productivity-Prompts
- Quelle: https://x.com/itsPaulAi/status/1726999763734737044
Diskussion
0 Kommentare