O
olson_ord
Hi,
I would be grateful if someone could try to answer this:
Question:
How to call a macro for every line of my Word Document?
Explanation:
I have a MS Word document having a huge number of lines that are like
7. maudlin: excessively sentimental.
This is to say that a line contains a few spaces initially, then a
number, then a word and finally the meaning of the word. I want to
delete the number, and make the word Bold. If I place my cursor at the
beginning of the line then I can do something like
Sub trial()
'
' trial Macro
'
Selection.MoveRight Unit:=wdWord, Count:=3, Extend:=wdExtend
Selection.TypeBackspace
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Font.Bold = wdToggle
End Sub
I don't know much about Macros or Visual Basic - this is what I
recorded from the MS Word Macro Recorder - and it seems to work. Now I
want to know how to call this for each line of my document.
Thanks a lot to any one who has ideas.
O.O.
I would be grateful if someone could try to answer this:
Question:
How to call a macro for every line of my Word Document?
Explanation:
I have a MS Word document having a huge number of lines that are like
7. maudlin: excessively sentimental.
This is to say that a line contains a few spaces initially, then a
number, then a word and finally the meaning of the word. I want to
delete the number, and make the word Bold. If I place my cursor at the
beginning of the line then I can do something like
Sub trial()
'
' trial Macro
'
Selection.MoveRight Unit:=wdWord, Count:=3, Extend:=wdExtend
Selection.TypeBackspace
Selection.MoveRight Unit:=wdWord, Count:=1, Extend:=wdExtend
Selection.Font.Bold = wdToggle
End Sub
I don't know much about Macros or Visual Basic - this is what I
recorded from the MS Word Macro Recorder - and it seems to work. Now I
want to know how to call this for each line of my document.
Thanks a lot to any one who has ideas.
O.O.