deepak.chawla92
Member
i have a word file where the text everytime changing and i want to only use the spell check and highlight the incorrect spellings
Dim doc as Object = GetDocument(handle,documentname)
Dim range As Object
For Each range In doc.SpellingErrors
range.HighlightColorIndex = 7 '7:=wdYellow
range.Font.Bold = True 'to make the incorrect word bold. Comment out if not needed
Next
doc = Nothing
range = Nothing
It is working Thanks for your Support.
Can we correct all the spelling after highlighting ?
If you are able to select the data using the Select All action then making the below changes will change the font name and size. This code can be customised into an Object by passing the Font name and size as parameters to the object and then to the Code stage.Hi ,
I have one query.i have used select all method of ms word vbo and bot is able to select all the text in word after selecting a text i want to change the font and font size of whole text.
i tried many time but it is working on range not on doc
any idea how can we do this ?
Dim d As Object = GetDocument(handle,document_name)
Dim w As Object = d.Application
Dim s As Object = Nothing
d.Select
s = w.Selection
With s
.Font.Name = "Arial"
.Font.Size = "10"
End With
d = Nothing
w = Nothing
s = Nothing