I need to perform a batch modification of metadata because my father wants to place a "title"
in all .jpg
images in a folder.
I told him to look into the photos and write down in a Excel spreadsheet the information to write down in order. One cell one file.
So I made the loop to read the spreadsheet but I don't know which file objects I need to use with the .jpg
files and which methods can read or write a metadata tag.
MSDN gave no help for this.
A bit of code
Sub seleccionaYmuesrtra()
'in the first column there are the file names.
'in the second column there are the titles written manually
Dim image As ????
???? Set image = New Bitmap("c:\FakePhoto.jpg")
Cells(1, 1).Activate 'I start in the first cell.
Dim contenido, ruta, nombre As String 'some variables
ruta = "C:\imagesToUseinFolder"
While (Not IsEmpty(ActiveCell)) 'this goes down in the first column until the first empty cell.
nombre = ruta & ActiveCell.Value & ".jpg"
contenido = ActiveCell.Offset(1, 0).Value
'------------------------------------
'HERE GOES THE ACTION I DON'T KNOW
...
'------------------------------------
ActiveCell.Offset(1, 0).Activate 'MOVE ONE DOWN
Wend
End Sub
I'm working in my laptop with windows7 but I think it should work in my parents desktop computer with XP. Thank you for your time, I hope that was not answered yet.