This is probably an easy one for you gurus, but it has me stumped. What I want to do is search for the ! symbol. When it's found, insert a row above it and insert some text. Then go to the next occurrence of the ! symbol and repeat until the end.
I created a macro that would do this, BUT, the problem is, it didn't go looking for the next occurrence of the ! symbol. It kept starting the search where I placed my cursor before starting the macro.
As an example, here's what I have:
one
two
three
!
one
two
three
!
one
two
three
!
one
two
three
!
Here's what I want to end up with:
one
two
three
four
!
one
two
three
four
!
one
two
three
four
!
one
two
three
four
!
Here's what I ended up with each time I ran my macro:
one
two
three
four
four
four
four
four
!
one
two
three
!
one
two
three
!
one
two
three
!
Can someone tell me how to accomplish this?
Thanks,
Andy
I created a macro that would do this, BUT, the problem is, it didn't go looking for the next occurrence of the ! symbol. It kept starting the search where I placed my cursor before starting the macro.
As an example, here's what I have:
one
two
three
!
one
two
three
!
one
two
three
!
one
two
three
!
Here's what I want to end up with:
one
two
three
four
!
one
two
three
four
!
one
two
three
four
!
one
two
three
four
!
Here's what I ended up with each time I ran my macro:
one
two
three
four
four
four
four
four
!
one
two
three
!
one
two
three
!
one
two
three
!
Can someone tell me how to accomplish this?
Thanks,
Andy