Rogelio Yepez
New Member
Hi guys,
I'm trying to use the code stage to highlight a text in word, I don't know if you guys can help me with my problem
This is my code:
Dim d As Object = GetDocument(handle,document_name)
Dim r As Object = d.Range
Dim P As Object = Encontrar
Do While r.Find.Execute
d.HighlightColor = color.Yellow
r.Set.HighlightText = P
r.MoveRight
Loop
Where "Encontrar" is the Data Item where I'm storing the words I need to highlight
I'm trying to use the code stage to highlight a text in word, I don't know if you guys can help me with my problem
This is my code:
Dim d As Object = GetDocument(handle,document_name)
Dim r As Object = d.Range
Dim P As Object = Encontrar
Do While r.Find.Execute
d.HighlightColor = color.Yellow
r.Set.HighlightText = P
r.MoveRight
Loop
Where "Encontrar" is the Data Item where I'm storing the words I need to highlight