Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-08-2022, 02:27 PM
Chopper Chopper is offline text disappearing intermittently when 'Selection.Find' used Windows 10 text disappearing intermittently when 'Selection.Find' used Office 2019
Novice
text disappearing intermittently when 'Selection.Find' used
 
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
  #2  
Old 10-08-2022, 02:29 PM
Andacar Andacar is offline text disappearing intermittently when 'Selection.Find' used Windows 7 64bit text disappearing intermittently when 'Selection.Find' used Office 2007
Novice
 
Join Date: Jan 2011
Location: Albuquerque
Posts: 11
Andacar is on a distinguished road
Default

Could it be pasting a text box or something like that on top?
Reply With Quote
  #3  
Old 10-08-2022, 02:38 PM
Chopper Chopper is offline text disappearing intermittently when 'Selection.Find' used Windows 10 text disappearing intermittently when 'Selection.Find' used Office 2019
Novice
text disappearing intermittently when 'Selection.Find' used
 
Join Date: Dec 2020
Posts: 16
Chopper is on a distinguished road
Default

I suppose anything is possible - but I'm not using text boxes in the software; plus it would be a REALLY big text box if that were the case. It seems to only do it when the selected text amount is so large that it runs into the next page(s) (which I should have mentioned in my original post, I now realize)
Reply With Quote
  #4  
Old 10-08-2022, 03:24 PM
Andacar Andacar is offline text disappearing intermittently when 'Selection.Find' used Windows 7 64bit text disappearing intermittently when 'Selection.Find' used Office 2007
Novice
 
Join Date: Jan 2011
Location: Albuquerque
Posts: 11
Andacar is on a distinguished road
Default

Then it's some kind of display error, as if Word were putting a margin in where it wasn't supposed to be.
Reply With Quote
  #5  
Old 10-09-2022, 09:39 AM
Chopper Chopper is offline text disappearing intermittently when 'Selection.Find' used Windows 10 text disappearing intermittently when 'Selection.Find' used Office 2019
Novice
text disappearing intermittently when 'Selection.Find' used
 
Join Date: Dec 2020
Posts: 16
Chopper is on a distinguished road
Default

yes, I think it is some kind of display error ... don't think it is a margin (I find no evidence of that on the tab/margin rulers; also it seems to cut through the middle of characters - something I don't think a margin, even a spurious one, would do. But thanks for your comments.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
text disappearing intermittently when 'Selection.Find' used Attempting to find text, select words before it, and format the entire selection KeviM Word VBA 1 04-07-2017 05:36 PM
text disappearing intermittently when 'Selection.Find' used PowerPoint presentation intermittently stopping Graeme145 PowerPoint 4 11-14-2014 02:54 PM
text disappearing intermittently when 'Selection.Find' used Help required with Selection.Find to search a text file. Marko Word VBA 2 10-18-2014 06:32 AM
VBA to Find and Format Text string defined using Inputbox within selection sistemalan Word VBA 7 10-03-2014 07:28 AM
text disappearing intermittently when 'Selection.Find' used Selection of all Text for a specific page in word is spanning selection across pages ramsgarla Word VBA 9 12-05-2012 03:23 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:44 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft