![]() Set this choice as default for your document (or all docs). The Font menu then appears with empty Font slot, empty Font style and empty Size. I am coding in VB.NET but it does not matter because if you know a way to do it in vba I will adapt the code. If you remove more than Regular it seems to work: I finally had the idea to try this: Select all your doc, left click your text, in the menu click Font. ![]() I am testing it with Word 20 but I want to be as extensive in compatibility as possible. It typically wouldnt be a problem with species names, but youll want to make sure that each line in the text file is unique enough that you dont get partial words affected in the document. The only possible workaround I could think of is to simulate the hotkey to toggle bold (Ctrl + B) / italic (Ctrl + I) / underline (Ctrl + U) but it has many inconveniences for example it depends on the language. After each line is read from the text file, Find and Replace is used to make sure that the text is changed to italic. ![]() I have also tried to collapse the range and remove italics: myRange.Collapse(WdCollapseDirection.wdCollapseEnd) So if you continue typing, the new text inserted will be in italics which I do not want to be the case. I am using the to find the desired text I want to modify and then I modify the range (for example for italics) (FindText:="inicialText", ReplaceWith:="newTextInItalics")Įverything is working fine, except when the word I am changing is the last word. ![]() I am coding a program that changes the format of a list of words as you write in Ms-Word. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |