Greetings, All.
I'm working on some text files I need to edit and want to write some VBA for this. But I need a little bit of help with some of the macros.
Specifically, what I'm trying to do is to search for a specific string (>> PAGE), count the occurances, then set a loop to count up to the number of occurances to number the pages.
I tried the recorder, but it didn't record what I needed. I used the find, replace all with the Find What text (^&). The message box returns replaced XX number of times. I need to capture this message box number to set my variable.
As an alternate, I can search for the >>PAGE and then overwrite the number. The problem I had was it would insert but not overwrite the number.
As a third alternative, I really don't care how I accomplish this if someone has a solution with a better technique to complete what I'm trying to do. I'm not set in stone to use the techniques I'm trying if you have a better way.
Can anyone give me a little assistance, or direct me to a website that can?
THANK YOU!!!!!
I'm working on some text files I need to edit and want to write some VBA for this. But I need a little bit of help with some of the macros.
Specifically, what I'm trying to do is to search for a specific string (>> PAGE), count the occurances, then set a loop to count up to the number of occurances to number the pages.
I tried the recorder, but it didn't record what I needed. I used the find, replace all with the Find What text (^&). The message box returns replaced XX number of times. I need to capture this message box number to set my variable.
As an alternate, I can search for the >>PAGE and then overwrite the number. The problem I had was it would insert but not overwrite the number.
As a third alternative, I really don't care how I accomplish this if someone has a solution with a better technique to complete what I'm trying to do. I'm not set in stone to use the techniques I'm trying if you have a better way.
Can anyone give me a little assistance, or direct me to a website that can?
THANK YOU!!!!!