Chris57
XLDnaute Occasionnel
Bonjour à tous,
j'ai trouvé ce code sur la toile :
celui-ci permet d'afficher les tags d'un fichier mp3
Ce que je voudrais c'est modifier les tags à partir d'excel.
Un spécialiste pourrai me donner une méthode ?
j'ai trouvé ce code sur la toile :
Code:
Type MP3Tag
ID As String * 3
Title As String * 30
Artist As String * 30
Album As String * 30
Year As String * 4
Comment As String * 28
ID3Tag As Byte
TrackNumber As Byte
End Type
Sub Test()
Const cRecordLen = 128
Dim strfile As String, lngFileLen As Long
Dim tag As MP3Tag, intFF As Integer
strfile = "C:\Users\Administrateur\Desktop\EDX - Embrace (original club mix) - 2011.mp3"
lngFileLen = FileLen(strfile)
intFF = FreeFile
Open strfile For Binary Access Read As intFF
Get intFF, lngFileLen - cRecordLen + 1, tag
If tag.ID = "TAG" Then
Debug.Print tag.Album; Tab; tag.TrackNumber; Tab; tag.Title
End If
Close intFF
[A1] = "tag.ID"
[A2] = "tag.Title"
[A3] = "tag.Artist"
[A4] = "tag.Album"
[A5] = "tag.Year"
[A6] = "tag.Comment"
[A7] = "tag.ID3Tag"
[A8] = "tag.TrackNumber"
[B1] = tag.ID
[b2] = tag.Title
[b3] = tag.Artist
[b4] = tag.Album
[b5] = tag.Year
[b6] = tag.Comment
[b7] = tag.ID3Tag
[b8] = tag.TrackNumber
End Sub
celui-ci permet d'afficher les tags d'un fichier mp3
Ce que je voudrais c'est modifier les tags à partir d'excel.
Un spécialiste pourrai me donner une méthode ?