Hi PHV, I hope this post reashes you.
SOme time ago you posted a solution to reading MP3tags from within VBA, the code being
You may try something like this :
Dim sTagIdent As String * 3
Dim sTitle As String * 30
Dim sArtist As String * 30
Dim sAlbum As String * 30
Dim sYear As String * 4
Dim sComment As String * 30
Open "\path\to\file.mp3" For Binary As #1
Seek #1, LOF(1) - 127
Get #1, , sTagIdent
If sTagIdent = "TAG" Then
Get #1, , sTitle
Get #1, , sArtist
Get #1, , sAlbum
Get #1, , sYear
Get #1, , sComment
End If
Close #1
I have tried but had no success, to read the rest of the tags as follow:-
track
Album artist
Genre
length
Size
Bitrate
Mode
Samplerate
Is there a way this can be done, any help would be very gratefully received as I am totally lost on this one.
many thanks
James
SOme time ago you posted a solution to reading MP3tags from within VBA, the code being
You may try something like this :
Dim sTagIdent As String * 3
Dim sTitle As String * 30
Dim sArtist As String * 30
Dim sAlbum As String * 30
Dim sYear As String * 4
Dim sComment As String * 30
Open "\path\to\file.mp3" For Binary As #1
Seek #1, LOF(1) - 127
Get #1, , sTagIdent
If sTagIdent = "TAG" Then
Get #1, , sTitle
Get #1, , sArtist
Get #1, , sAlbum
Get #1, , sYear
Get #1, , sComment
End If
Close #1
I have tried but had no success, to read the rest of the tags as follow:-
track
Album artist
Genre
length
Size
Bitrate
Mode
Samplerate
Is there a way this can be done, any help would be very gratefully received as I am totally lost on this one.
many thanks
James