Hi all.
I require help with a reasonably complicated VBA macro loop for a dataset I've been provided. The dataset exists as one long column one thousands of different entries.
I've tried recording macros but I am at a loss at the best way to approach it. Any help would be greatly appreciated. In its simplest terms, I need to locate a term (ie. "THIS IS A TEST"), copy that cell into new worksheet, go 72 cells up and copy whatever is in that cell into the new worksheet as well.
Logic for the VBA macro Loop...
1. Scan through all worksheets for the words "THIS IS A TEST"
2. Copy that cell into a new worksheet (eg. A1)
3. Go 72 cells up
4. Copy that cell into the new worksheet (eg. B1)
It needs to loop through the above logic across all open worksheets, dumping the results into a new worksheet. Here is an example with 3 results..
--------------------------------------------
A...........................|B.............
--------------------------------------------
THIS IS A TEST X....|BLERG... <------the cell 72 up from "THIS IS A TEST X"
--------------------------------------------
THIS IS A TEST 2....|BLER2.... <------the cell 72 up from "THIS IS A TEST 2"
--------------------------------------------
THIS IS A TEST 1....|BLEfff...... <------the cell 72 up from "THIS IS A TEST 1"
--------------------------------------------
Once again, thanks for any help I recieve.
Bookmarks