I am relatively new to vba. I have used VB a long time ago so I derive a lot of info from that experience. Though now I'm facing a harder task and I don't quite know how to do it.
I have got a data sheet with in column E software version information (ie "3.1.1", "3.1.2" and so on). I have created a for loop the searches through E. In this for there are several if statements like this one:
If Cells(r, Columns("E").Column).Value = "3.1.2" Then 'find criteria
'Copy the current row
Rows(r).Select
Selection.Copy
'Switch to the sprint where you want to paste it & paste
Sheets("Sprint 2").Select
Rows(sprint2).Select
ActiveSheet.Paste
sprint2 = sprint2 + 1 'next row
'Switch back to backlog & continue to search for criteria
Sheets("Backlog").Select
ElseIf...
This is working fine for me, except that I need to create the sheets before running the macro. What I would like to do is:
- Search through column E
- Fill an array with all unique values in Column E*[edit]
- Create a sheet for every value in the Array
I would love to hear what you guys think.