Cells(.Rows.Count, "A").End(xlUp).Row)įor Each myStoryRange In wordDoc. Sub NonBreakingSpace(ByVal wordApp As Object, ByVal wordDoc As Object, ByVal myStoryRange As Object) The above solution will result in the wildcards being replaced by themselves, this is usually not a problem, but since I am doing this in a dokument that is in tracked changed it will be visable. I got Word files from one guy, written in Russian and convert them to HTML. On the Insert tab, in the Symbols group, click Symbol. Click where you want to insert the nonbreaking space. To keep two words or a hyphenated word together on one line, you can use a nonbreaking space or nonbreaking hyphen instead of a regular space or hyphen. Is there any way I can make a search and replace, where I only replace the "space" with a "non-breaking space" and not the wildcards. Word automatically breaks the text at a space or a hyphen at the end of a line. ![]() Example "3 mg" to "3(non-breaking space)mg" or "1 kilo" to "1(non-breaking space)kilo". Is there any way I can make () to a dynamic word? I have a list of word I want to use instead.In my coding below I am trying to replace "()( )()" with "\1^s\3", but the result allways ends like \1\3^2 or as example "3 A" would become "3A(non-breaking space)", but what I want is "3(non-breaking space)A".
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |