Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can I read mp3 tags from vba code? 1

Status
Not open for further replies.

TommyTea

Programmer
Nov 7, 2002
43
US
Does anyone out there have any knowledge of reading mp3 tags from within vba code?
 
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

Hope This Help, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top