I used your break-data-example VBA macro to split my excel file into 380 separate files by manager name. Unfortunately, the copy portion is not working. I've debugged the macro - but it still doesn't seem to work. It works in the version I downloaded from Chandoo- but when I modify it to work in my own sheets, (it is VERY similar setup to sample file) the copy/paste does not work. It simply creates Blank workbooks.
Any help you can provide? Does it matter what version of excel I am using (Excel 2013)? See below for section of the VBA. At the ActiveSheet.Paste - it doesn't paste the data.
Any help you can provide? Does it matter what version of excel I am using (Excel 2013)? See below for section of the VBA. At the ActiveSheet.Paste - it doesn't paste the data.
Code:
For Each cell In Range("lstSalesman")
[valSalesman] = cell.Value
Range("myList").AdvancedFilter Action:=xlFilterCopy, _
criteriarange:=Range("Criteria"), copyToRange:=Range("Extract"), unique:=False
Range(Range("Extract"), Range("Extract").End(xlDown)).Copy
Workbooks.Add
ActiveSheet.Paste
Last edited by a moderator: