I have a ton of data to filter and copy out to new workbooks based on a portfolio code.
I am attempting to loop through "rng" which is the unique numbers from the data, and I am looking it up in "wsd" which is the raw data sheets colum E which holds each lines portfolio code.
This is my first attempt at a loop with vba and I'm having an issue with looking up a range and referencing it against another range. The below code is giving me a runtime error 13 "Type Mismatch" message but I can't figure out why. I have a few ideas but none I can work out how to create a fix. Any suggestions as always welcomed
At the moment I am testing but when done K2:K3 becomes "portf" which is a defined name range of 200 odd lines in the G column of sheets "Stats"![]()
Please Login or Register to view this content.
Bookmarks