Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file that I want to extract data out of. I normally use web scraping to get the info I need, except in this case the information isnt readily "visible" for scraping needs. Reason being -- the data I need is called inside of a parent class Anyways, thats beside the point....

Each class is uniquely identified by a date. However the information I want is listed right below this as a particular class ( but they are always called the same thing ).

What I would like to do is use a macro to loop thru the file and each time it comes across this class ( we'll call it a string "GET_THIS" ), I'd like to call it "GET_THIS"+1 . Ex: The first instance would be GET_THIS1 The second instance would be GET_THIS2 The third instance would be GET_THIS3 ....

Until end of file.

Any ideas or input would be awesome!

share|improve this question
Just to clarify, you are looking to replace all instances of the string "GET_THIS" with "GET_THIS"+ a number that increments as it finds/replaces instances of "GET_THIS"? – Ƭᴇcʜιᴇ007 Aug 15 '12 at 20:23

You must log in to answer this question.

Browse other questions tagged .