Sets the beginning and ending indices of the selected text within the report.
Syntax
Parameters
Return value
Sub Report.SetSelection( _
Start As Integer, _
End As Integer)
Start [in]
The beginning of the range within the report to be highlighted. Note that Report character indexing is zero based.
Type: Integer
End [in]
The end of the range within the report to be highlighted.
Type: Integer
This function does not return a value.
SVB Example
Setting the selected text in a report:
Option Base 1
Option Explicit
Sub Main
Dim rpt As Report
Set rpt = ActiveReport
'highlight the entire report
rpt.SetSelection(0,r.CharacterCount)
End Sub