TextRange.InsertSlideNumber Method
Inserts the slide number of the current slide into the specified text range. Returns a TextRange object that represents the slide number.
Namespace: Microsoft.Office.Interop.PowerPoint
Assembly: Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)
Syntax
'Declaration
Function InsertSlideNumber As TextRange
'Usage
Dim instance As TextRange
Dim returnValue As TextRange
returnValue = instance.InsertSlideNumber()
TextRange InsertSlideNumber()
Return Value
Type: Microsoft.Office.Interop.PowerPoint.TextRange
TextRange
Remarks
The inserted slide number is automatically updated when the slide number of the current slide changes.
Examples
This example inserts the slide number of the current slide after the first sentence of the first paragraph in shape two on slide one in the active presentation.