Sub Import_SVG_File()
'
' Import SVG Files to worksheets as Text
'
' By: Hui
' July 2017
'
Dim strFilename As String
Dim strFileContent As String
Dim iFile As Integer
Dim MySVGFile() As String
Dim MyFolder As String
Dim MyFile As String
MyFolder = "C:\Users\Huis\Desktop\SVG Files" 'Change as appropriate
MyFile = Dir(MyFolder & "*.svg") 'Select SVG file type
ChDir MyFolder
Do While MyFile <> ""
'Add new worksheet
Worksheets.Add(After:=Worksheets(Worksheets.Count)).Name = MyFile
Worksheets(MyFile).Select
iFile = FreeFile
'Open SCVG File and load it to an array
Open MyFile For Input As #iFile
strFileContent = Input(LOF(iFile), iFile)
Close #iFile
'Split array to another array
MySVGFile = Split(strFileContent, vbLf)
'Loop through each line of the SVG File
For i = 1 To UBound(MySVGFile, 1)
'Debug.Print i, myfile(i)
'Put logic here to check and extract data
ActiveSheet.Cells(i, 1) = MySVGFile(i)
Next i
'goto next file
MyFile = Dir
Loop
End Sub