VBA/Excel/Access/Word/PowerPoint/PowerPoint Slide — различия между версиями
| Admin (обсуждение | вклад) м (1 версия) | Admin (обсуждение | вклад)  м (1 версия) | 
| (нет различий) | |
Текущая версия на 12:46, 26 мая 2010
Add slides
 
 Sub CreatePresentations()
     Dim intPresentations As Integer
     Dim i As Integer
     intPresentations = 3
     For i = 1 To intPresentations
         Presentations.Add
     Next i
 End Sub
   
Creating a New Presentation Based on a Template
 
Sub open()
    Presentations.Open FileName:="C:\Capsules.pot", Untitled:=msoTrue
End Sub
   
Creating a New Presentation Based on the Default Template
 
Sub pre()
    Dim myPresentation As Presentation
    Set myPresentation = Presentations.Add(WithWindow:=msoFalse)
End Sub