Ik heb de volgende code in visual basic van powerpoint 2010
bij het dikgedrukte geeft hij een foutmelding
De foutmelding is HeadersFooters (unknown member) :invalid request
ik ben zelf een dummie in vba en kom er niet uit. wie kan mij helpen?
Code:
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdOK_Click()
ActivePresentation.CustomDocumentProperties("titel") = frmStart.txttitel.Text
ActivePresentation.CustomDocumentProperties("subtitel") = frmStart.txtsubtitel.Text
ActivePresentation.CustomDocumentProperties("datum") = frmStart.txtdatum.Text
With ActivePresentation.TitleMaster.HeadersFooters
With .DateAndTime
.Format = ppDateTimedMMMMyyyy
.Text = Me.txtdatum
.UseFormat = msoFalse
.Visible = msoTrue
End With
With .Footer
[B] .Text = Me.txttitel[/B]
.Visible = msoTrue
End With
.SlideNumber.Visible = msoTrue
End With
With ActivePresentation.SlideMaster.HeadersFooters
With .DateAndTime
.Format = ppDateTimedMMMMyyyy
.Text = Me.txtdatum
.UseFormat = msoFalse
.Visible = msoTrue
End With
With .Footer
.Text = Me.txttitel
.Visible = msoTrue
End With
.SlideNumber.Visible = msoTrue
End With
With ActivePresentation.Slides.Range.HeadersFooters
With .DateAndTime
.Format = ppDateTimedMMMMyyyy
.Text = Me.txtdatum
.UseFormat = msoFalse
.Visible = msoTrue
End With
With .Footer
.Text = Me.txttitel
.Visible = msoTrue
End With
.SlideNumber.Visible = msoTrue
End With
With ActivePresentation.NotesMaster.HeadersFooters
.DateAndTime.Text = "22 september 2002"
.Footer.Text = Me.txttitel
End With
ActiveWindow.Selection.SlideRange.Shapes("Rectangle 2").Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1, Length:=0).Select
ActiveWindow.Selection.TextRange.Text = Me.txttitel
ActiveWindow.Selection.SlideRange.Shapes("Rectangle 3").Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Select
ActiveWindow.Selection.ShapeRange.TextFrame.TextRange.Characters(Start:=1, Length:=0).Select
ActiveWindow.Selection.TextRange.Text = Me.txtsubtitel
Unload Me
End Sub
bij het dikgedrukte geeft hij een foutmelding
De foutmelding is HeadersFooters (unknown member) :invalid request
ik ben zelf een dummie in vba en kom er niet uit. wie kan mij helpen?
Laatst bewerkt: