T
thalos
Hello
Is Somebody be able to solve my bug ?
Sub occurence()
Dim lStart As Long
Dim objWdRange As Range
Dim objWd1 As Range
Dim Num1 As Integer
Selection.GoTo wdGoToLine, wdGoToLast
NumLines
ActiveDocument.BuiltInDocumentProperties(wdPropertyLines)
Selection.GoTo wdGoToLine, wdGoToFirst
Selection.Expand wdLine
Set objWd1 Selection.Range.Text 'error incompatibility of type
'I want to get the text from a certain selection.range
'what have I to do ?
'that's why I must use: selection.range.text
Selection.Collapse wdCollapseEnd
End Su
Is Somebody be able to solve my bug ?
Sub occurence()
Dim lStart As Long
Dim objWdRange As Range
Dim objWd1 As Range
Dim Num1 As Integer
Selection.GoTo wdGoToLine, wdGoToLast
NumLines
ActiveDocument.BuiltInDocumentProperties(wdPropertyLines)
Selection.GoTo wdGoToLine, wdGoToFirst
Selection.Expand wdLine
Set objWd1 Selection.Range.Text 'error incompatibility of type
'I want to get the text from a certain selection.range
'what have I to do ?
'that's why I must use: selection.range.text
Selection.Collapse wdCollapseEnd
End Su