ok so I need to change th variable.
I want the script to save the artist name to "prevartist"
then I want it to go to the next song, and check if "prevartist=itm.artistname"
If they are the same then the script will move on to the Album
If the album is the same then it will skip to next song.
Does this make since?
I have this so far and it gives me no errors but it doesn't do what I want.
Code: Select all
' Iterate through the list and export all songs
Progress.MaxValue = list.count
Dim i, itm
Dim prevArtist, prevAlbum
for i=0 to list.count-1
Set itm = list.Item(i)
WS.Cells(i+2,1).Value = itm.ArtistName
WS.Cells(i+2,2).Value = itm.AlbumName
**
Progress.Value = i+1
if Progress.Terminate then
Exit For
end if
next
As soon as I put in "Set prevartist = itm.ArtistName" at the ** I get an error.
Am I going at this the wrong way or using the wrong commands?