If I have the following variables and string:

Dim line, type, id, filename As String
line= "p,12345,nothing.jpg"

How can I do the following?

type=p
id=12345
filename=nothing.jpg

So how can I split this string up into those smaller strings?

Thanks!