View Single Post
 
Old 10-08-2022, 02:27 PM
Chopper Chopper is offline Windows 10 Office 2019
Novice
 
Join Date: Dec 2020
Posts: 16
Chopper is on a distinguished road
Default text disappearing intermittently when 'Selection.Find' used

I have a document (Dante's Inferno) within which I want to programmatically sequentially select bits of quoted text in order to make a selection from an input box that changes the color of the text. E.G., if it is Dante speaking, I turn the text green, if Virgil, I turn the text purple, etc. The attached code does the job just fine but it intermittently seems to "cut" part of the visible text (see screenshot). Without seeing the totality of the text it makes it very difficult, or impossible, to discern who is speaking ... which sort of renders the whole process pointless.

I don't know if this is a program glitch, or if it is related to processing/rendering unique to my computer [HP Desktop with AMD A-6 processor, Windows 10] to the screen. I have tried fiddling with the timing of the program ('sleep' function, etc.) but to no avail.

Would appreciate any thoughts/suggestions/enlightenment.
Attached Images
File Type: jpg CaptureDante.JPG (59.9 KB, 18 views)
Attached Files
File Type: docx DanteCode.docx (2.6 KB, 9 views)
Reply With Quote