asi
asked on
Word macro and Run-time error 4608
Hello,
I have macro with the following lines:
"Dim objRange As Range
ActiveDocument.Range.Start = Selection.Start
ActiveDocument.Range.End = Selection.End
Set objRange = ActiveDocument.Range(Selec tion.Start , Selection.End)"
This macro runs on word docs.
When I execute the macro on small doc it runs perfectly but on large doc, I receive the error
"Run-time error 4608, value out of range"
Why?
BR
Asi
I have macro with the following lines:
"Dim objRange As Range
ActiveDocument.Range.Start
ActiveDocument.Range.End = Selection.End
Set objRange = ActiveDocument.Range(Selec
This macro runs on word docs.
When I execute the macro on small doc it runs perfectly but on large doc, I receive the error
"Run-time error 4608, value out of range"
Why?
BR
Asi
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
What is the Selection set to when the error occurs?