Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

SimpleMacro.vba 330B

1234567891011121314
  1. Sub TestMacro()
  2. '
  3. ' TestMacro Macro
  4. ' This is a test macro
  5. '
  6. '
  7. With ActivePresentation.Slides(1).Shapes(1)
  8. .Title.TextFrame.TextRange.Text = "This is a macro slideshow"
  9. End With
  10. With ActivePresentation.Slides(1).Shapes(2)
  11. .Title.TextFrame.TextRange.Text = "subtitle"
  12. EndWith
  13. End Sub