![]()  | 
	
| 
	 | 
| 
		 
			 
			#1  
			 
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			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.  | 
| 
		 
			 
			#2  
			 
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Could it be pasting a text box or something like that on top?
		 
		
		
		
		
 | 
| 
		 
			 
			#3  
			 
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			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)
		 
		
		
		
		
		
		
		
		
	
	 | 
| 
		 
			 
			#4  
			 
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			Then it's some kind of display error, as if Word were putting a margin in where it wasn't supposed to be.
		 
		
		
		
		
 | 
| 
		 
			 
			#5  
			 
			
			
			
			
		 
		
	 | 
|||
		
		
  | 
|||
| 
		
	
		
		
			
			 
			
			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.
		 
		
		
		
		
		
		
		
		
	
	 | 
 
 | 
	
	
| 
		 | 
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
		
		  Attempting to find text, select words before it, and format the entire selection
	 | 
	KeviM | Word VBA | 1 | 04-07-2017 05:36 PM | 
		
		  PowerPoint presentation intermittently stopping
	 | 
	Graeme145 | PowerPoint | 4 | 11-14-2014 02:54 PM | 
		
		  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 | 
		
		  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 |