Link to home
Start Free TrialLog in
Avatar of asi
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(Selection.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
Avatar of Joe Howard
Joe Howard
Flag of United States of America image

Try debugging.
What is the Selection set to when the error occurs?
ASKER CERTIFIED SOLUTION
Avatar of GrahamSkan
GrahamSkan
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial