Hello everyone,
I hope I could get some help here with my vba code below:
For any reason unknown to me above code fails to return the desired filter from the table.Please Login or Register to view this content.
The code is supposed to loop through the "MomentumDescription" column and fetch only the "New Wave Positive" elements that are between any two "SQ Cancelled" element in that column within a specified timeframe in cell E5 from the "Timeframe" column in a worksheet named "Trend Analysis". The "SQ Cancelled" is the boundary that marks a cycle (LV). The code is supposed to exit after the first five cycles and write out the output in a new worksheet named "OutputData". But the output of the code only return just one of the "New Wave Positive" element in each cycle together with other elements that are not needed from the dataset.
Can someone please help me out with the logic to only fetch the total occurrences of "New Wave Positive" Element within the specified timeframe that is between every "SQ Cancelled" element. I also need the last "SQ Cancelled" element to be fetched together with the "New Wave Positive" elements per cycle.
Bookmarks