M
Mark
I have recently started using VBA to make my macros work better in Word. I
had been using wp51 for DOS (not kidding, this has worked well for me and I
knew how to program it to do most everything I needed) for making custom
reports but now that I have upgraded to a Windows 7, I can no longer install
this old program.
When my macro runs, I need to be able to select (then delete) a variable
amount of text. In the example below [with the cursor just to the right of 3
which I marked with an X)], I would like to be able to delete #3 through #5
then have the cursor end up just to the left of 1) under suggestions.
However, I would like this macro to do the same for starting at any other
number (4 or 5 for example) without any user input.
In wp51, that was easy as you click on select, then go to the end point of
the selection (I would just put a character like # and use the find
function), then delete. With Word, of course, you can only select a fixed
amount of text in a macro.
Is there some simple VBA code that I put in my macro to perform this task
that does not require any user input? Also, I would like to do this for the
lower section if I don't use all the 5 numbered suggestion lines using the
same macro.
3) X (insertion point here)
4)
5)
SUGGESTIONS:
1)
2)
3)
4)
5)
Thanks,
Mark
had been using wp51 for DOS (not kidding, this has worked well for me and I
knew how to program it to do most everything I needed) for making custom
reports but now that I have upgraded to a Windows 7, I can no longer install
this old program.
When my macro runs, I need to be able to select (then delete) a variable
amount of text. In the example below [with the cursor just to the right of 3
which I marked with an X)], I would like to be able to delete #3 through #5
then have the cursor end up just to the left of 1) under suggestions.
However, I would like this macro to do the same for starting at any other
number (4 or 5 for example) without any user input.
In wp51, that was easy as you click on select, then go to the end point of
the selection (I would just put a character like # and use the find
function), then delete. With Word, of course, you can only select a fixed
amount of text in a macro.
Is there some simple VBA code that I put in my macro to perform this task
that does not require any user input? Also, I would like to do this for the
lower section if I don't use all the 5 numbered suggestion lines using the
same macro.
3) X (insertion point here)
4)
5)
SUGGESTIONS:
1)
2)
3)
4)
5)
Thanks,
Mark