Macropod, Thank you for your reply. I will try your code.
And I see now that I was inserting stuff after the defined range.
I will go experiment with all this until I get the results I want.
But I have a question, If the text is this:
XXXX action taken by XXX personnel.
Active Directory Record already enabled. No Action Taken by XXX Personnel.
User has been updated in the Remedy System
Start Date & Time 9/22/2022 10:36:45 AM
And with the code: Set oRng = ActiveDocument.Paragraphs.Last.Range
The contents of oRng = Start Date & Time 9/22/2022 10:36:45 AM
Is that right?
|